2017-05-01 06:01:12 +08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
const sh = require('shelljs')
|
|
|
|
const vars = require('./vars')
|
2017-06-10 06:29:16 +08:00
|
|
|
const log = require('npmlog')
|
2017-05-01 06:01:12 +08:00
|
|
|
|
2021-07-10 23:51:37 +08:00
|
|
|
log.info('patch')
|
2022-01-17 02:41:01 +08:00
|
|
|
sh.exec(`yarn patch-package`, { fatal: true })
|
2017-11-28 13:19:38 +08:00
|
|
|
|
2017-06-10 06:29:16 +08:00
|
|
|
log.info('deps', 'app')
|
2017-05-01 06:01:12 +08:00
|
|
|
|
2017-06-21 05:28:58 +08:00
|
|
|
sh.cd('app')
|
2022-01-18 17:31:07 +08:00
|
|
|
sh.exec(`yarn install --force`, { fatal: true })
|
2017-06-21 05:28:58 +08:00
|
|
|
sh.cd('..')
|
|
|
|
|
2021-06-20 04:01:35 +08:00
|
|
|
sh.cd('web')
|
2022-01-18 17:31:07 +08:00
|
|
|
sh.exec(`yarn install --force`, { fatal: true })
|
2022-01-17 02:41:01 +08:00
|
|
|
sh.exec(`yarn patch-package`, { fatal: true })
|
2021-06-20 04:01:35 +08:00
|
|
|
sh.cd('..')
|
|
|
|
|
2021-08-09 04:06:08 +08:00
|
|
|
vars.allPackages.forEach(plugin => {
|
2021-07-10 23:51:37 +08:00
|
|
|
log.info('deps', plugin)
|
|
|
|
sh.cd(plugin)
|
2022-01-17 02:41:01 +08:00
|
|
|
sh.exec(`yarn install --force`, { fatal: true })
|
2021-07-10 23:51:37 +08:00
|
|
|
sh.cd('..')
|
2017-05-01 06:01:12 +08:00
|
|
|
})
|
2018-03-24 00:15:11 +08:00
|
|
|
|
|
|
|
if (['darwin', 'linux'].includes(process.platform)) {
|
2021-07-10 23:51:37 +08:00
|
|
|
sh.cd('node_modules')
|
|
|
|
for (let x of vars.builtinPlugins) {
|
|
|
|
sh.ln('-fs', '../' + x, x)
|
|
|
|
}
|
|
|
|
sh.cd('..')
|
2018-03-24 00:15:11 +08:00
|
|
|
}
|