Fix package.json test run script

This commit is contained in:
Lorenzo Iovino 2025-06-12 16:44:22 +02:00
parent 807518f87e
commit ffc2910a0b

View file

@ -1,21 +1,21 @@
{ {
"name": "node-base-project", "name": "node-base-project",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node build/main.js", "start": "node build/main.js",
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",
"build+start": "npm run build && npm run start", "build+start": "npm run build && npm run start",
"build:watch": "tsc -w -p tsconfig.json", "build:watch": "tsc -w -p tsconfig.json",
"test:watch": "node --import tsx --test --watch **/**/*.spec.ts", "test:watch": "node --import tsx --test --watch $(find src -name '*.spec.ts')",
"test": "node --import tsx --test **/**/*.spec.ts" "test": "node --import tsx --test $(find src -name '*.spec.ts')"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.5", "@types/node": "^20.11.5",
"tsx": "^4.7.0", "tsx": "^4.7.0",
"typescript": "^5.3.3" "typescript": "^5.3.3"
} }
} }