Skip to content

Commit

Permalink
fix: add tsconfig.build.json for nest build default load
Browse files Browse the repository at this point in the history
  • Loading branch information
aquariuslt committed May 2, 2020
1 parent 0efa8c5 commit bcceaa1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/lib/application/__tests__/application.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('Application Factory', () => {
'/project/README.md',
'/project/nest-cli.json',
'/project/package.json',
'/project/tsconfig.build.json',
'/project/tsconfig.json',
'/project/src/app.module.ts',
'/project/src/main.ts',
Expand Down
5 changes: 0 additions & 5 deletions src/lib/application/files/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"@nestjs/testing": "7.0.9",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/exec": "5.0.0",
"@semantic-release/git": "9.0.0",
"@semantic-release/npm": "7.0.5",
"@types/express": "4.17.6",
"@types/jest": "25.2.1",
"@types/node": "13.13.4",
Expand All @@ -53,7 +49,6 @@
"prettier": "2.0.5",
"pretty-quick": "2.0.1",
"supertest": "4.0.2",
"semantic-release": "17.0.7",
"ts-jest": "25.4.0",
"ts-loader": "7.0.2",
"ts-node": "8.9.1",
Expand Down
4 changes: 4 additions & 0 deletions src/lib/application/files/ts/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "dist", "**/*/__tests__/**"]
}
10 changes: 5 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"target": "es6",
"sourceMap": false,
"skipLibCheck": true,
"module": "commonjs",
"target": "es6",
"outDir": "./dist",
"rootDir": "./src",
"skipLibCheck": true
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "src/**/*.test.ts"]
"exclude": ["node_modules", "dist"]
}
19 changes: 2 additions & 17 deletions tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"skipLibCheck": true,
"sourceMap": false,
"target": "es6",
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src/index.ts", "src/lib"],
"exclude": ["node_modules", "src/**/*/files/**", "src/**/*.test.ts"]
"extends": "./tsconfig.json",
"exclude": ["node_modules", "dist", "**/*/files/**", "**/*/__tests__/**"]
}

0 comments on commit bcceaa1

Please sign in to comment.