Skip to content

Commit 38e43ce

Browse files
filipesilvahansl
authored andcommitted
build: support paths with spaces on Windows (angular#4274)
Fix angular#4250
1 parent 29b134d commit 38e43ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/publish/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Promise.resolve()
6161
const script = path.join(root, 'scripts/build-schema-dts.js');
6262
const input = path.join(root, 'packages/angular-cli/lib/config/schema.json');
6363
const output = path.join(root, 'packages/angular-cli/lib/config/schema.d.ts');
64-
return npmRun.execSync(`node ${script} ${input} ${output}`);
64+
return npmRun.execSync(`node "${script}" "${input}" "${output}"`);
6565
})
6666
.then(() => console.log('Compiling packages...'))
6767
.then(() => {
@@ -87,7 +87,7 @@ Promise.resolve()
8787
return promise.then(() => {
8888
console.log(` ${name}`);
8989
try {
90-
return npmRun.execSync(`tsc -p ${path.relative(process.cwd(), pkg.root)}`);
90+
return npmRun.execSync(`tsc -p "${path.relative(process.cwd(), pkg.root)}"`);
9191
} catch (err) {
9292
throw new Error(`Compilation error.\n${err.stdout}`);
9393
}

0 commit comments

Comments
 (0)