Skip to content

Commit

Permalink
fix: broken npm run dev after package.json changes
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Jun 4, 2018
1 parent 6491678 commit 8bd6217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8bd6217

Please sign in to comment.