From 7282274502d636af9199b7e664939915113df5d0 Mon Sep 17 00:00:00 2001 From: Emma Segal-Grossman Date: Tue, 16 Jan 2024 21:01:01 -0500 Subject: [PATCH] Hotfix: ignore everything in `./tests` and `playwright.config.ts` when checking types during webpack build (#1470) [Frontend Build Check](https://github.com/webrecorder/browsertrix-cloud/actions/workflows/frontend-build-check.yaml) was failing on main bc Webpack was type-checking a number of files that require various `devDependencies`, which are purposefully not installed at this point to mirror `frontend/Dockerfile` behaviour. --- frontend/webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index e645f83c..062543d1 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -152,7 +152,11 @@ const main = { }), new ForkTsCheckerWebpackPlugin({ - typescript: { configOverwrite: { exclude: ["**/*.test.ts"] } }, + typescript: { + configOverwrite: { + exclude: ["**/*.test.ts", "tests/**/*.ts", "playwright.config.ts"], + }, + }, }), new HtmlWebpackPlugin({