66 lines
1.8 KiB
JSON
66 lines
1.8 KiB
JSON
{
|
|
"name": "node-with-typescript",
|
|
"version": "1.0.0",
|
|
"description": "Backend with NodeJS in TypeScript",
|
|
"main": "src/index.ts",
|
|
"repository": "https://github.com/RiccardoSenica/node-with-typescript.git",
|
|
"author": "riccardo.s@hey.com",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts",
|
|
"build": "tsc",
|
|
"lint": "eslint --ext .ts . --fix",
|
|
"typecheck": "tsc",
|
|
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
|
|
"test": "jest --runInBand",
|
|
"prepare": "husky install",
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "prisma migrate deploy",
|
|
"db:reset": "prisma migrate reset --force"
|
|
},
|
|
"lint-staged": {
|
|
"*.ts": [
|
|
"eslint --quiet --fix"
|
|
],
|
|
"*.{json,ts}": [
|
|
"prettier --write --ignore-unknown"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "5.1.1",
|
|
"body-parser": "^1.20.2",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.18.2",
|
|
"helmet": "^7.0.0",
|
|
"jsonschema": "^1.4.1",
|
|
"prisma": "^5.1.1",
|
|
"winston": "^3.10.0",
|
|
"winston-daily-rotate-file": "^4.7.1"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^17.6.6",
|
|
"@commitlint/config-conventional": "^17.6.6",
|
|
"@swc/core": "^1.3.69",
|
|
"@swc/jest": "^0.2.26",
|
|
"@types/cors": "^2.8.13",
|
|
"@types/express": "^4.17.17",
|
|
"@types/jest": "^29.5.3",
|
|
"@types/node": "^20.4.2",
|
|
"@types/supertest": "^2.0.12",
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
"eslint": "^8.44.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
"husky": "^8.0.0",
|
|
"jest": "^29.6.1",
|
|
"lint-staged": "^13.2.3",
|
|
"nodemon": "^3.0.1",
|
|
"prettier": "^3.0.0",
|
|
"supertest": "^6.3.3",
|
|
"ts-jest": "^29.1.1",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^5.1.6"
|
|
}
|
|
}
|