mirror of
https://github.com/cypress-io/cypress.git
synced 2025-12-30 19:19:53 -06:00
13 lines
457 B
JavaScript
13 lines
457 B
JavaScript
const { execSync } = require('child_process')
|
|
|
|
const executionEnv = process.env.CI ? 'ci' : 'local'
|
|
|
|
const postInstallCommands = {
|
|
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], {
|
|
stdio: 'inherit',
|
|
})
|