Skip to content

Commit

Permalink
Use nodemon for test:ts npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
decaplanet committed Feb 10, 2024
1 parent bc2744f commit f0625ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nodemon-configs/nodemon-test-ts.json
@@ -0,0 +1,5 @@
{
"watch": ["src"],
"ext": "ts",
"exec": "vitest"
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"build": "npm run build:wasm && npm run build:ts",
"build:ts": "rollup -c",
"build:wasm": "cd ./wasm && wasm-pack build --target web --release && cd ../ && npm i",
"test:ts": "vitest",
"test:ts": "nodemon --config ./nodemon-configs/nodemon-test-ts.json",
"test:rust": "nodemon --config ./nodemon-configs/nodemon-test-rust.json",
"lint:ts": "eslint . --ext .ts --ignore-pattern '**/*.d.ts'"
},
Expand Down

0 comments on commit f0625ac

Please sign in to comment.