diff --git a/bin/ngw b/bin/ngw index 3970b25..a403567 100755 --- a/bin/ngw +++ b/bin/ngw @@ -4,13 +4,13 @@ switch (process.argv[2]) { require('../lib/set-up'); break; default: - + const execSync = require('child_process').execSync; const entryPointPath = require.resolve('../lib/index'); const tsNodePath = require.resolve('ts-node/dist/bin'); const ngCommandArgs = process.argv.slice(2); - const executionPoint = [tsNodePath, entryPointPath].concat(ngCommandArgs).join(' '); - - execSync(`node ${executionPoint}`, {stdio: 'inherit'}); + const executionPoint = [tsNodePath, entryPointPath].concat(ngCommandArgs).join('" "'); + + execSync(`node "${executionPoint}"`, {stdio: 'inherit'}); } diff --git a/package.json b/package.json index b45c7fe..d7c093e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngw", - "version": "0.0.16", + "version": "5.0.1", "description": "Provides an opportunity to overload webpack config for angular-cli applications", "main": "lib/index.js", "typings": "lib/index", @@ -9,7 +9,7 @@ "test": "echo test", "coverage": "echo coverage", "build": "tsc", - "prepublishOnly:": "tsc" + "prepublishOnly": "tsc" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index f135dd4..8262733 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,8 @@ "strictNullChecks": false, "suppressImplicitAnyIndexErrors": false, "outDir": "./lib", - "moduleResolution": "node" + "moduleResolution": "node", + "skipLibCheck": true }, "exclude": [ "node_modules",