Skip to content

Commit

Permalink
feat: add watch cmd (#286)
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <[email protected]>
  • Loading branch information
sfroment authored Dec 11, 2024
1 parent 65a7983 commit 20450ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"proto-gen:network": "buf generate packages/network/src/proto -o packages/network/src/proto",
"proto-gen:object": "buf generate packages/object/src/proto -o packages/object/src/proto",
"release": "release-it",
"test": "vitest"
"test": "vitest",
"watch": "pnpm --parallel --filter '@ts-drp/*' watch"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/blueprints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"build": "tsc -b",
"clean": "rm -rf dist/ node_modules/",
"prepack": "tsc -b",
"test": "vitest"
"test": "vitest",
"watch": "tsc -b -w"
},
"devDependencies": {
"@ts-drp/object": "0.4.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"scripts": {
"build": "tsc -b",
"clean": "rm -rf dist/ node_modules/",
"prepack": "tsc -b"
"prepack": "tsc -b",
"watch": "tsc -b -w"
},
"dependencies": {
"loglevel": "^1.9.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"build": "tsc -b",
"clean": "rm -rf dist/ node_modules/",
"prepack": "tsc -b",
"test": "vitest"
"test": "vitest",
"watch": "tsc -b -w"
},
"devDependencies": {
"@libp2p/interface": "^2.1.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"cli": "tsx ./src/run.ts",
"prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"prepack": "tsc -b",
"test": "vitest"
"test": "vitest",
"watch": "tsc -b -w"
},
"devDependencies": {
"@bufbuild/protobuf": "^2.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/object/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
}
},
"scripts": {
"benchmark": "tsx tests/hashgraph.bench.ts | tee benchmark-output.txt",
"build": "tsc -b",
"clean": "rm -rf dist/ node_modules/",
"prepack": "tsc -b",
"test": "vitest",
"benchmark": "tsx tests/hashgraph.bench.ts | tee benchmark-output.txt"
"watch": "tsc -b -w"
},
"devDependencies": {
"@bufbuild/protobuf": "^2.0.0",
Expand Down

0 comments on commit 20450ef

Please sign in to comment.