use node-compat-require instead of webpack for node >= 4 support; update dependencies
This commit is contained in:
parent
fa8df25694
commit
dd83df8f4e
10 changed files with 1327 additions and 10673 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue