create npm instalation

This commit is contained in:
cyber-dream 2022-08-19 04:52:45 +03:00
parent 3856c39e04
commit 67fb2cecbd
3 changed files with 2504 additions and 0 deletions

2466
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

22
package.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "base-api-ts",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "tsc --project ./",
"start:dev": "nodemon src/server.ts",
"start:prod": "node dist/server.js"
},
"dependencies": {
"express": "^4.17.1",
"ts-node-dev": "^2.0.0"
},
"devDependencies": {
"@types/express": "^4.17.11",
"@types/node": "^14.14.22",
"nodemon": "^2.0.7",
"ts-node": "^10.9.1",
"typescript": "^4.1.3"
}
}

16
tsconfig.json Normal file
View File

@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist",
"baseUrl": ".",
"paths": {
"*": ["node_modules/*"]
}
},
"include": ["src/**/*"]
}