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
This commit is contained in:
Alejandro Estrada
2022-04-04 11:12:08 -05:00
committed by GitHub
parent 404447e397
commit e6cbc5ae1e
16 changed files with 70 additions and 44 deletions
+12
View File
@@ -0,0 +1,12 @@
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',
})