mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-09-12 21:35:18 -05:00
Fix app development command from another directory
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
import process from 'node:process';
|
import process from 'node:process';
|
||||||
import { createRequire } from 'node:module';
|
import { createRequire } from 'node:module';
|
||||||
|
import * as path from 'node:path';
|
||||||
import { execFileSync } from 'node:child_process';
|
import { execFileSync } from 'node:child_process';
|
||||||
import createDebug from 'debug';
|
import createDebug from 'debug';
|
||||||
import type { Arguments as ParentArguments } from '../cli.js';
|
import type { Arguments as ParentArguments } from '../cli.js';
|
||||||
import { ArgumentsCamelCase, Argv, YargsArguments } from '../util/yargs.js';
|
import { ArgumentsCamelCase, Argv, YargsArguments } from '../util/yargs.js';
|
||||||
|
import { dir } from '../util/product.js';
|
||||||
|
|
||||||
const debug = createDebug('cli:app');
|
const debug = createDebug('cli:app');
|
||||||
|
|
||||||
@@ -25,7 +27,7 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
execFileSync(electron, [
|
execFileSync(electron, [
|
||||||
'dist/app/app-entry.cjs',
|
path.resolve(dir, 'dist', 'app', 'app-entry.cjs'),
|
||||||
], {
|
], {
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
env: {
|
env: {
|
||||||
|
|||||||
Reference in New Issue
Block a user