Files
cypress/scripts/run-postInstall.js
Alejandro Estrada e6cbc5ae1e fix: windows build (#20854)
* fix: update icons build to work on windows

* Add rimraf

* Update scripts

* Update script

* Update scripts

* Fix windows migration

* Update postinstall script

* Remove script
2022-04-04 11:12:08 -05:00

13 lines
373 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 build',
ci: 'patch-package && yarn clean && gulp postinstall',
}
execSync(postInstallCommands[executionEnv], {
stdio: 'inherit',
})