mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-08 23:50:07 -06:00
Co-authored-by: Matt Schile <mschile@cypress.io> Co-authored-by: David Rowe <95636404+davidr-cy@users.noreply.github.com> Co-authored-by: Ryan Manuel <ryanm@cypress.io>
13 lines
519 B
JavaScript
13 lines
519 B
JavaScript
const { execSync } = require('child_process')
|
|
|
|
const executionEnv = process.env.CI ? 'ci' : 'local'
|
|
|
|
const postInstallCommands = {
|
|
local: 'patch-package && yarn-deduplicate --strategy=highest && yarn clean && gulp postinstall && yarn workspace @packages/server rebuild-better-sqlite3 && yarn build && yarn build-v8-snapshot-dev',
|
|
ci: 'patch-package && yarn clean && gulp postinstall && yarn workspace @packages/server rebuild-better-sqlite3',
|
|
}
|
|
|
|
execSync(postInstallCommands[executionEnv], {
|
|
stdio: 'inherit',
|
|
})
|