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