nodemonts-node
npm i -D @types/node nodemon ts-node tsconfig-paths typescriptnpx run nodemon #
npm run dev #
npm run build #nodemonts-nodenpm i -D @types/node nodemon ts-node tsconfig-paths typescriptnpx run nodemon #
npm run dev #
npm run build #| { | |
| "watch": ["src"], | |
| "ext": "ts,json", | |
| "ignore": ["src/**/*.spec.ts"], | |
| "execMap": { | |
| "ts": "ts-node -T -r tsconfig-paths/register" | |
| } | |
| } |
| { | |
| "compilerOptions": { | |
| "lib": ["es2021"], | |
| "module": "commonjs", | |
| "moduleResolution": "node", | |
| "target": "es2021", | |
| "strict": true, | |
| "esModuleInterop": true, | |
| "skipLibCheck": true, | |
| "forceConsistentCasingInFileNames": true, | |
| "allowUnusedLabels": false, | |
| "allowUnreachableCode": false, | |
| "exactOptionalPropertyTypes": true, | |
| "noFallthroughCasesInSwitch": true, | |
| "noImplicitOverride": true, | |
| "noImplicitReturns": true, | |
| "noPropertyAccessFromIndexSignature": true, | |
| "noUncheckedIndexedAccess": true, | |
| "noUnusedLocals": true, | |
| "noUnusedParameters": true, | |
| "importsNotUsedAsValues": "error", | |
| "checkJs": true, | |
| "outDir": "build", | |
| "baseUrl": "./src", | |
| "paths": { | |
| "@/*": ["*"] | |
| } | |
| }, | |
| "include": ["./src/**/*"], | |
| "exclude": ["node_modules", "src/**/*.spec.ts"] | |
| } |