Skip to content

Commit 6de797e

Browse files
committed
chore: always rebuild webpack config when building compass(-web)
1 parent 0210d86 commit 6de797e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/compass-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"scripts": {
3838
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
3939
"compile": "npm run webpack -- --mode production",
40+
"prewebpack": "echo \"making sure compass webpack config is up to date...\" && npm run compile --workspace=@mongodb-js/webpack-config-compass",
4041
"webpack": "webpack-compass",
4142
"postcompile": "npm run typescript",
4243
"typescript": "tsc -p tsconfig-build.json --emitDeclarationOnly",

packages/compass/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,13 @@
141141
"scripts": {
142142
"install": "node scripts/download-fonts.js && node scripts/download-csfle.js",
143143
"electron-rebuild": "node scripts/electron-rebuild.js",
144-
"prestart": "npm run electron-rebuild && npm run compile --workspace=@mongodb-js/webpack-config-compass",
144+
"prestart": "npm run electron-rebuild",
145145
"start": "HADRON_DISTRIBUTION=${HADRON_DISTRIBUTION:-compass} npm run webpack serve -- --mode development",
146146
"test-electron": "npm run test-main && npm run test-renderer",
147147
"test-main": "xvfb-maybe electron-mocha --no-sandbox \"./src/main/**/*.spec.*\" \"./src/main/**/*.test.*\"",
148148
"test-renderer": "xvfb-maybe electron-mocha --no-sandbox --config ./.mocharc.renderer.js \"./src/app/**/*.spec.*\"",
149149
"check": "npm run typecheck && npm run lint && npm run depcheck",
150+
"prewebpack": "echo \"making sure compass webpack config is up to date...\" && npm run compile --workspace=@mongodb-js/webpack-config-compass",
150151
"webpack": "webpack-compass",
151152
"compile": "npm run webpack -- --mode production",
152153
"postcompile": "npm run generate-3rd-party-notices",

0 commit comments

Comments
 (0)