Skip to content

Commit 092d010

Browse files
authored
Tasks: add watch mode (#845)
``` pnpm install cd pacakges/tasks pnpm run watch ``` cc @coyotte508 when you're back
1 parent 4734206 commit 092d010

File tree

3 files changed

+630
-0
lines changed

3 files changed

+630
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"eslint-config-prettier": "^9.0.0",
1818
"eslint-plugin-prettier": "^4.2.1",
1919
"eslint-plugin-svelte": "^2.30.0",
20+
"npm-run-all": "^4.1.5",
2021
"prettier": "^3.1.0",
2122
"prettier-plugin-svelte": "^3.1.2",
2223
"semver": "^7.5.0",

packages/tasks/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"format:check": "prettier --check .",
2626
"prepublishOnly": "pnpm run inference-codegen && git diff --name-only --exit-code src && pnpm run build",
2727
"build": "tsup src/index.ts --format cjs,esm --clean && tsc --emitDeclarationOnly --declaration",
28+
"watch:export": "tsup src/index.ts --format cjs,esm --watch",
29+
"watch:types": "tsc --emitDeclarationOnly --declaration --watch",
30+
"watch": "npm-run-all --parallel watch:export watch:types",
2831
"prepare": "pnpm run build",
2932
"check": "tsc",
3033
"inference-codegen": "tsx scripts/inference-codegen.ts && prettier --write src/tasks/*/inference.ts",

0 commit comments

Comments
 (0)