feat: add node.json config for NestJS, update react.json with Vite flags
All checks were successful
continuous-integration/drone/push Build is passing

- node.json: commonjs, decorators, node moduleResolution
- react.json: noEmit, allowImportingTsExtensions, moduleDetection
- Bump @vigdorov/typescript-config to 1.1.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-16 23:57:43 +03:00
parent e2a2a15087
commit d346c22c72
4 changed files with 24 additions and 9 deletions

View File

@ -78,14 +78,13 @@ export default react((configs) => [
``` ```
```jsonc ```jsonc
// tsconfig.json — Node/NestJS-проект // tsconfig.json — NestJS-проект
{ {
"extends": "@vigdorov/typescript-config/base", "extends": "@vigdorov/typescript-config/node",
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "dist",
"rootDir": "src" "baseUrl": "./"
}, }
"include": ["src"]
} }
``` ```

View File

@ -0,0 +1,12 @@
{
"extends": "./base.json",
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
"esModuleInterop": true,
"isolatedModules": false
}
}

View File

@ -1,11 +1,12 @@
{ {
"name": "@vigdorov/typescript-config", "name": "@vigdorov/typescript-config",
"version": "1.0.0", "version": "1.1.0",
"description": "Shared TypeScript configurations", "description": "Shared TypeScript configurations",
"type": "module", "type": "module",
"files": ["base.json", "react.json"], "files": ["base.json", "react.json", "node.json"],
"exports": { "exports": {
"./base": "./base.json", "./base": "./base.json",
"./react": "./react.json" "./react": "./react.json",
"./node": "./node.json"
} }
} }

View File

@ -2,6 +2,9 @@
"extends": "./base.json", "extends": "./base.json",
"compilerOptions": { "compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"], "lib": ["DOM", "DOM.Iterable", "ES2022"],
"jsx": "react-jsx" "jsx": "react-jsx",
"noEmit": true,
"allowImportingTsExtensions": true,
"moduleDetection": "force"
} }
} }