Skip to content

Commit

Permalink
fix(nx): wrap tmp directory into quotes
Browse files Browse the repository at this point in the history
Defensive layer in case user setup to node.js contains spaces.
  • Loading branch information
Jessica Nierth authored and vsavkin committed Apr 30, 2019
1 parent b288abd commit df6cd70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/create-nx-workspace/bin/create-nx-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const args = process.argv
console.log(`ng new ${args} --collection=${nxTool.packageName}`);
execSync(
`${path.join(
tmpDir,
`"${tmpDir}"`,
'node_modules',
'.bin',
'ng'
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/bin/create-nx-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const args = process.argv
console.log(`ng new ${args} --collection=${nxTool.packageName}`);
execSync(
`${path.join(
tmpDir,
`"${tmpDir}"`,
'node_modules',
'.bin',
'ng'
Expand Down

0 comments on commit df6cd70

Please sign in to comment.