diff --git a/dist/package.json b/dist/package.json deleted file mode 100644 index 8fd3530..0000000 --- a/dist/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "name": "ngm-cli", - "version": "1.0.3", - "description": "Simple way to manage angular submodules in one repository", - "bin": { - "ngm": "bin/ngm-cli.js" - }, - "scripts": { - "build": "tsc -p src/tsconfig.json", - "test": "echo 'all good, move on ;)'", - "e2e-tsm": "node dist/test/e2e.js", - "e2e": "echo 'dont touch it'", - "ebuild-multi": "ngm build -p e2e/ngm-multi", - "ebuild-single": "ngm build -p e2e/ngm-single" - }, - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/valor-software/npm-submodules.git" - }, - "keywords": [ - "npm", - "node", - "typescript", - "angular", - "angular", - "angularcli" - ], - "author": "Dmitriy Shekhovtsov (https://twitter.com/valorkin)", - "license": "MIT", - "bugs": { - "url": "https://github.com/valor-software/npm-submodules/issues" - }, - "homepage": "https://github.com/valor-software/npm-submodules#readme", - "peerDependencies": { - "ts-loader": ">=4.3.0", - "node-sass": ">=4.0.0", - "node-sass-tilde-importer": ">=1.0.0", - "webpack": ">=4.0.0", - "typescript": ">=2.7.2" - }, - "dependencies": { - "chalk": "2.4.1", - "cpy": "7.0.0", - "del": "3.0.0", - "execa": "0.10.0", - "inquirer": "5.2.0", - "listr": "0.14.1", - "lodash": "4.17.10", - "meow": "5.0.0", - "node-sass": "^4.5.3", - "node-sass-tilde-importer": "1.0.2", - "read-pkg": "3.0.0", - "rollup": "0.58.2", - "rollup-plugin-commonjs": "9.1.3", - "rollup-plugin-node-resolve": "3.3.0", - "semver": "5.5.0", - "split": "1.0.1", - "stream-to-observable": "0.2.0", - "ts-loader": "4.3.0", - "tsconfig": "7.0.0", - "typescript": "~2.7.2", - "update-notifier": "2.5.0", - "webpack": "4.6.0", - "write-pkg": "3.1.0" - }, - "devDependencies": { - "@angular/animations": "6.0.1", - "@angular/common": "6.0.1", - "@angular/compiler": "6.0.1", - "@angular/compiler-cli": "6.0.1", - "@angular/core": "6.0.1", - "@angular/forms": "6.0.1", - "@angular/http": "6.0.1", - "@angular/platform-browser": "6.0.1", - "@angular/platform-browser-dynamic": "6.0.1", - "@angular/platform-server": "6.0.1", - "@angular/router": "6.0.1", - "@angular/tsc-wrapped": "4.4.6", - "@types/chokidar": "1.7.5", - "@types/node": "10.0.8", - "@types/webpack": "4.1.6", - "reflect-metadata": "0.1.12", - "rxjs": "6.1.0", - "zone.js": "0.8.26" - } -} diff --git a/package-lock.json b/package-lock.json index 550ad14..acfdeab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -538,36 +538,6 @@ "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" }, - "awesome-typescript-loader": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/awesome-typescript-loader/-/awesome-typescript-loader-5.0.0.tgz", - "integrity": "sha512-/80vlBnWp5IlERQ0sxRDQfz5voqht02MRNgUdbn90rKHrope6eh0PYr0qepD2TpYYnCSvq0DzdWc8udHM0KefA==", - "requires": { - "chalk": "^2.3.1", - "enhanced-resolve": "^4.0.0", - "loader-utils": "^1.1.0", - "lodash": "^4.17.5", - "micromatch": "^3.1.9", - "mkdirp": "^0.5.1", - "source-map-support": "^0.5.3" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-support": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz", - "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - } - } - }, "aws-sign2": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", diff --git a/src/bin/ngm-cli.ts b/src/bin/ngm-cli.ts index 04abad5..63ad896 100755 --- a/src/bin/ngm-cli.ts +++ b/src/bin/ngm-cli.ts @@ -98,17 +98,21 @@ const cli = meow(` }, watch: { type: 'boolean', - alias: 'w' + alias: 'w', + default: false }, version: { type: 'boolean', - alias: 'c' + alias: 'c', + default: false }, local: { - type: 'boolean' + type: 'boolean', + default: false }, verbose: { - type: 'boolean' + type: 'boolean', + default: true } } }); diff --git a/src/utils/tasks-watch.ts b/src/utils/tasks-watch.ts index b6ab7ac..d35aea4 100644 --- a/src/utils/tasks-watch.ts +++ b/src/utils/tasks-watch.ts @@ -33,7 +33,10 @@ export function tasksWatch({project, taskQueue, watch, paths}){ isRunning = false; }) .catch(err => { - console.error(`\n${err.message}`); + if (err) { + console.error(`\n${err.message}`); + } + console.error() isRunning = false; }); }