feat: add node.json config for NestJS, update react.json with Vite flags
All checks were successful
continuous-integration/drone/push Build is passing
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:
@ -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"]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
12
packages/typescript/node.json
Normal file
12
packages/typescript/node.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"extends": "./base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"declaration": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"isolatedModules": false
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user