Add build tsconfig for automatic deployments (#1784)

This commit is contained in:
George Berezhnoy 2021-09-17 15:47:29 +03:00 committed by GitHub
parent 70a736bffa
commit 1433c1a7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

4
tsconfig.build.json Normal file
View File

@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["test"]
}

View File

@ -12,6 +12,7 @@ module.exports = (env, argv) => {
const { LicenseWebpackPlugin } = require('license-webpack-plugin');
const pkg = require('./package.json');
/**
* Environment
*
@ -78,6 +79,9 @@ module.exports = (env, argv) => {
},
{
loader: 'ts-loader',
options: {
configFile: NODE_ENV === 'production' ? 'tsconfig.build.json' : 'tsconfig.json',
},
},
],
},