From 1433c1a7dc0e462fac75be7ae3d9172f1816e341 Mon Sep 17 00:00:00 2001 From: George Berezhnoy Date: Fri, 17 Sep 2021 15:47:29 +0300 Subject: [PATCH] Add build tsconfig for automatic deployments (#1784) --- tsconfig.build.json | 4 ++++ webpack.config.js | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 tsconfig.build.json diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 00000000..27722617 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["test"] +} diff --git a/webpack.config.js b/webpack.config.js index 898be3a8..b4eb86af 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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', + }, }, ], },