diff --git a/packages/compiler/package.json b/packages/compiler/package.json index fbc0a12..7e815cd 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -11,7 +11,9 @@ "scripts": { "prepare": "npm run compile && npm run rollup", "compile": "../../node_modules/.bin/tsc", - "rollup": "../../node_modules/.bin/rollup -c" + "compile-watch": "../../node_modules/.bin/tsc -w", + "rollup": "../../node_modules/.bin/rollup -c", + "rollup-watch": "../../node_modules/.bin/rollup -c -w" }, "main": "dist/syndicate-compiler.js", "module": "lib/index.js", diff --git a/packages/core/package.json b/packages/core/package.json index 59f6e76..c5765a8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -11,7 +11,9 @@ "scripts": { "prepare": "npm run compile && npm run rollup", "compile": "../../node_modules/.bin/tsc", + "compile-watch": "../../node_modules/.bin/tsc -w", "rollup": "../../node_modules/.bin/rollup -c", + "rollup-watch": "../../node_modules/.bin/rollup -c -w", "test": "../../node_modules/.bin/jest", "cover": "../../node_modules/.bin/nyc --reporter=html ../../node_modules/.bin/jest" }, diff --git a/packages/syndicatec/package.json b/packages/syndicatec/package.json index 8dfee3a..bdca895 100644 --- a/packages/syndicatec/package.json +++ b/packages/syndicatec/package.json @@ -10,7 +10,8 @@ "repository": "github:syndicate-lang/syndicate-js", "scripts": { "prepare": "npm run compile", - "compile": "../../node_modules/.bin/tsc" + "compile": "../../node_modules/.bin/tsc", + "compile-watch": "../../node_modules/.bin/tsc -w" }, "author": "Tony Garnock-Jones ", "dependencies": { diff --git a/packages/ts-plugin/package.json b/packages/ts-plugin/package.json index cb73165..cc2ea1e 100644 --- a/packages/ts-plugin/package.json +++ b/packages/ts-plugin/package.json @@ -10,7 +10,8 @@ "repository": "github:syndicate-lang/syndicate-js", "scripts": { "prepare": "npm run compile", - "compile": "../../node_modules/.bin/tsc" + "compile": "../../node_modules/.bin/tsc", + "compile-watch": "../../node_modules/.bin/tsc -w" }, "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/tsc/package.json b/packages/tsc/package.json index 7a33d8a..9f03045 100644 --- a/packages/tsc/package.json +++ b/packages/tsc/package.json @@ -10,7 +10,8 @@ "repository": "github:syndicate-lang/syndicate-js", "scripts": { "prepare": "npm run compile", - "compile": "../../node_modules/.bin/tsc" + "compile": "../../node_modules/.bin/tsc", + "compile-watch": "../../node_modules/.bin/tsc -w" }, "author": "Tony Garnock-Jones ", "dependencies": { diff --git a/watchall b/watchall index 2c422db..6b75e9e 100755 --- a/watchall +++ b/watchall @@ -16,12 +16,12 @@ open() { for d in packages/*/tsconfig.json do - open "cd $(dirname $d); ../../node_modules/.bin/tsc -w" + open "cd $(dirname $d); npm run compile-watch" done for d in packages/*/rollup.config.js do - open "cd $(dirname $d); npx rollup -c -w" + open "cd $(dirname $d); npm run rollup-watch" done tmux select-layout even-vertical