From 8bd62173bfa97fa36376c0e49f8daacc73226201 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Mon, 4 Jun 2018 12:08:32 +0200 Subject: [PATCH] fix: broken `npm run dev` after package.json changes --- gulpfile.ts | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.ts b/gulpfile.ts index 1b2ea83a0c..94eb23eced 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -220,4 +220,5 @@ gulp.task("watch", gulp.series( "build", gulp.parallel("pegjs-watch", "static-watch", "tsc-watch", "watch-code"), )) +gulp.task("watch-dist", gulp.series((done) => { setDestDir("dist"); done() }, "watch")) gulp.task("default", gulp.series("watch")) diff --git a/package.json b/package.json index 07e28177f3..f575e6f22a 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "check-licenses": "gulp check-licenses", "check-package-lock": "git diff-index --quiet HEAD -- package-lock.json || (echo 'package-lock.json is dirty!' && exit 1)", "clean": "rm -rf build && rm -rf dist && git clean -X -f", - "dev": "gulp build && cd build && npm link && cd .. && gulp watch", + "dev": "gulp dist && npm link && gulp watch-dist", "dist": "npm run clean && ./bin/check-if-clean && gulp dist", "fix-format": "node_modules/.bin/tslint -p . --fix && node_modules/.bin/tsfmt -r", "generate-docs": "gulp generate-docs",