From ce06fc3c286effdc24fef547e0293dea68d5fe18 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Mon, 15 Aug 2022 08:25:38 +0200 Subject: [PATCH] Remove NPM prepare script --- package.json | 1 - scripts/prepare.js | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100755 scripts/prepare.js diff --git a/package.json b/package.json index bc19c04a9..4148aad18 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,6 @@ "scripts": { "start": "npm run serve", "serve": "webpack serve --config webpack.dev.js", - "prepare": "node ./scripts/prepare.js", "build:development": "webpack --config webpack.dev.js", "build:production": "cross-env NODE_ENV=\"production\" webpack --config webpack.prod.js", "build:check": "tsc --noEmit", diff --git a/scripts/prepare.js b/scripts/prepare.js deleted file mode 100755 index 898b105e2..000000000 --- a/scripts/prepare.js +++ /dev/null @@ -1,12 +0,0 @@ -const { execSync } = require('child_process'); - -/** - * The npm `prepare` script needs to run a build to support installing - * a package from git repositories (this is dumb but a limitation of how - * npm behaves). We don't want to run these in CI though because - * building is slow so this script will skip the build when the - * `SKIP_PREPARE` environment variable has been set. - */ -if (!process.env.SKIP_PREPARE) { - execSync('webpack --config webpack.prod.js', { stdio: 'inherit' }); -}