From a3c0cf9dd5ebca61b43c3807d454d70d90cbfacb Mon Sep 17 00:00:00 2001 From: Georgy Berezhnoy Date: Thu, 16 Sep 2021 20:53:48 +0300 Subject: [PATCH] Add build tsconfig for automatic deployments --- 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 000000000..27722617f --- /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 898be3a8c..b4eb86af9 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', + }, }, ], },