updates on package.json:

* adds test and lint scripts commands
* adding: jest for tesing
* adding: eslint for linting
* adding required types
* replace ts-node with tsx
This commit is contained in:
albert
2025-07-28 11:49:49 +02:00
parent 5f21982ed9
commit f9df9aab0f
2 changed files with 6505 additions and 6 deletions

View File

@ -17,11 +17,21 @@
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "ts-node src/index.js"
"dev": "tsx watch src/index.ts",
"test": "jest",
"test:watch": "jest --watch",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^24.1.0",
"ts-node": "^10.9.2",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"eslint": "^9.32.0",
"jest": "^30.0.5",
"ts-jest": "^29.4.0",
"tsx": "^4.20.3",
"typescript": "^5.8.3"
}
}