diff --git a/.circleci/cache-version.txt b/.circleci/cache-version.txt index f79cc7cad5fc..b7dd2f993977 100644 --- a/.circleci/cache-version.txt +++ b/.circleci/cache-version.txt @@ -1,3 +1,3 @@ # Bump this version to force CI to re-create the cache from scratch. -10-01-24 +10-02-24 diff --git a/packages/server/package.json b/packages/server/package.json index e479164d2a07..6374ba01e5f5 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -12,6 +12,7 @@ "docker": "cd ../.. && WORKING_DIR=/packages/server ./scripts/run-docker-local.sh", "postinstall": "patch-package", "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .", + "rebuild-better-sqlite3": "electron-rebuild -f -o better-sqlite3", "repl": "node repl.js", "start": "node ../../scripts/cypress open --dev --global", "test": "node ./test/scripts/run.js", diff --git a/scripts/run-postInstall.js b/scripts/run-postInstall.js index 62692118167e..d8d7019f179a 100644 --- a/scripts/run-postInstall.js +++ b/scripts/run-postInstall.js @@ -3,8 +3,8 @@ const { execSync } = require('child_process') const executionEnv = process.env.CI ? 'ci' : 'local' const postInstallCommands = { - local: 'patch-package && yarn-deduplicate --strategy=highest && yarn build && yarn build-v8-snapshot-dev', - ci: 'patch-package', + local: 'patch-package && yarn-deduplicate --strategy=highest && lerna run rebuild-better-sqlite3 --scope @packages/server && yarn build && yarn build-v8-snapshot-dev', + ci: 'patch-package && lerna run rebuild-better-sqlite3 --scope @packages/server', } execSync(postInstallCommands[executionEnv], {