Skip to content

Commit 50cd918

Browse files
author
Jakub Synowiec
committed
Benefit from config inheritance
A tsconfig.json file can inherit configurations from another file. Base options are overridden by those in the inheriting config file. Config inheritance was introduced with TypeScript 2.1 release.
1 parent 4ef8346 commit 50cd918

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

tsconfig.prod.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
2+
"extends": "./tsconfig.json",
23
"compilerOptions": {
3-
"module": "commonjs",
44
"declaration": true,
5-
"noImplicitAny": false,
65
"removeComments": false,
7-
"noLib": false,
8-
"emitDecoratorMetadata": true,
9-
"experimentalDecorators": true,
10-
"target": "es6",
116
"sourceMap": false,
12-
"outDir": "node_modules/nest.js"
7+
"outDir": "node_modules/nest.js",
8+
"allowJs": false
139
},
1410
"files": [
1511
"src/index.ts"
@@ -18,8 +14,5 @@
1814
"src/websockets/**/*.ts",
1915
"src/microservices/**/*.ts",
2016
"src/testing/*.ts"
21-
],
22-
"exclude": [
23-
"node_modules"
2417
]
2518
}

0 commit comments

Comments
 (0)