Skip to content

Commit

Permalink
chore: fix better-sqlite3 rebuild process (#30338)
Browse files Browse the repository at this point in the history
* chore: fix better-sqlite3 rebuild

* Update cache-version.txt
  • Loading branch information
ryanthemanuel authored Oct 1, 2024
1 parent 4bd5f02 commit e358902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/cache-version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Bump this version to force CI to re-create the cache from scratch.

10-01-24
10-02-24
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-postInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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], {
Expand Down

3 comments on commit e358902

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on e358902 Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.0/linux-arm64/release/14.0.0-e3589022d787059bd574864a72820fc48290f8c0/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on e358902 Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.0/darwin-arm64/release/14.0.0-e3589022d787059bd574864a72820fc48290f8c0/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on e358902 Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.0/darwin-x64/release/14.0.0-e3589022d787059bd574864a72820fc48290f8c0/cypress.tgz

Please sign in to comment.