Skip to content

Commit 88eff34

Browse files
committed
chore: improved cleanup in npm run watch
1 parent 66dd77d commit 88eff34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"release:cask": "./Casks/bump.sh",
99
"watch:source": "tsc --build . --watch",
1010
"compile": "npx tsc --build .",
11-
"compile:clean": "tsc --build tsconfig.json --clean",
11+
"compile:clean": "tsc --build tsconfig.json --clean && npm run watch:clean",
1212
"kill": "npm run kill:proxy; kill $(lsof -t -i:908${PORT_OFFSET-0}) > /dev/null 2> /dev/null || true",
13-
"_watch": "bash -c \"npm run kill; export CSP_ALLOWED_HOSTS='http: https: data: filesystem: about: blob: ws: wss:'; kui-watch-webpack\"",
13+
"watch:clean": "rm -f dist/headless/codeflare*.js",
14+
"_watch": "bash -c \"npm run watch:clean && npm run kill; export CSP_ALLOWED_HOSTS='http: https: data: filesystem: about: blob: ws: wss:'; kui-watch-webpack\"",
1415
"watch:webpack": "bash -c \"npm run pty:nodejs && npm run _watch $WATCH_ARGS\"",
1516
"watch:electron": "bash -c \"npm run pty:electron && TARGET=electron-renderer npm run _watch\"",
1617
"watch": "bash -c \"npm run kill; npm run compile && concurrently -n ES6,WEBPACK --kill-others 'npm run watch:source' 'npm run watch:electron'\"",

0 commit comments

Comments
 (0)