Skip to content

Commit 2d4e7c6

Browse files
Revert "Change fix for windows (do not use shell)"
This reverts commit 4184da5.
1 parent 203bd95 commit 2d4e7c6

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

apps/demos/utils/create-bundles/Angular/bundler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ export default class AngularBundler implements Bundler {
4242

4343
createDemoLayout(demo, this.framework);
4444

45-
const npmExecutable = process.platform === 'win32' ? 'npm.cmd' : 'npm';
46-
const ngBuildProcess = spawn(npmExecutable, ['run', 'build-angular', '--', getProjectNameByDemo(demo)], { shell: false });
45+
const ngBuildProcess = spawn('npm', ['run', 'build-angular', '--', getProjectNameByDemo(demo)], { shell: process.platform === 'win32' });
4746
ngBuildProcess.stdout.on('data', (data) => {
4847
console.log(`stdout: ${data}`);
4948
});

apps/demos/utils/ts-to-js-converter/converter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ const pipeSource = async (
7979
};
8080

8181
const execTsc = async (directory: string, args: string[]): Promise<string> => new Promise((resolve, reject) => {
82-
const tscExecutable = isWindows() ? 'tsc.cmd' : 'tsc';
83-
const proc = cps.spawn(tscExecutable, args, { cwd: directory, shell: false });
82+
const proc = cps.spawn('tsc', args, { cwd: directory, shell: isWindows() });
8483
let stdout = '';
8584
let stderr = '';
8685
proc.stdout.on('data', (data: Buffer) => { stdout += data.toString(); });

0 commit comments

Comments
 (0)