fix(create-bot): don't try installing dev deps if there arent any
This commit is contained in:
parent
9286aee9ce
commit
0d4ab165b6
1 changed files with 4 additions and 1 deletions
|
@ -90,5 +90,8 @@ export async function installDependencies(cwd: string, config: UserConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
await exec(cwd, ...getInstallCommand({ mgr: config.packageManager, packages: dependencies }))
|
await exec(cwd, ...getInstallCommand({ mgr: config.packageManager, packages: dependencies }))
|
||||||
await exec(cwd, ...getInstallCommand({ mgr: config.packageManager, packages: devDepdenencies, dev: true }))
|
|
||||||
|
if (devDepdenencies.length) {
|
||||||
|
await exec(cwd, ...getInstallCommand({ mgr: config.packageManager, packages: devDepdenencies, dev: true }))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue