From df6cd7075fc569b8c470e65033f1dab02aa328b4 Mon Sep 17 00:00:00 2001 From: Jessica Nierth Date: Sun, 28 Apr 2019 16:47:34 +0200 Subject: [PATCH] fix(nx): wrap tmp directory into quotes Defensive layer in case user setup to node.js contains spaces. --- packages/create-nx-workspace/bin/create-nx-workspace.ts | 2 +- packages/schematics/bin/create-nx-workspace.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index 84095d4938644..e4870e8605800 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -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' diff --git a/packages/schematics/bin/create-nx-workspace.ts b/packages/schematics/bin/create-nx-workspace.ts index 84095d4938644..e4870e8605800 100644 --- a/packages/schematics/bin/create-nx-workspace.ts +++ b/packages/schematics/bin/create-nx-workspace.ts @@ -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'