1
0
Fork 0

use node-compat-require instead of webpack for node >= 4 support; update dependencies

This commit is contained in:
Travis Fischer 2018-05-06 19:01:46 -04:00 committed by Joost De Cock
parent fa8df25694
commit dd83df8f4e
10 changed files with 1327 additions and 10673 deletions

View file

@ -88,8 +88,6 @@ module.exports.initPackageManager = async (opts) => {
info
} = opts
const example = path.join(dest, 'example')
const commands = [
{
cmd: `${info.manager} install`,
@ -99,13 +97,7 @@ module.exports.initPackageManager = async (opts) => {
cmd: `${info.manager} link`,
cwd: dest
}
].concat(info.manager === 'yarn' ? [
{
cmd: `${info.manager}`,
cwd: example
}
] : [ ]
)
]
return pEachSeries(commands, async ({ cmd, cwd }) => {
return execa.shell(cmd, { cwd })