fix(create-bot): don't try installing dev deps if there arent any

This commit is contained in:
alina 🌸 2024-08-05 00:13:40 +03:00
parent 9286aee9ce
commit 0d4ab165b6
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -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: devDepdenencies, dev: true }))
if (devDepdenencies.length) {
await exec(cwd, ...getInstallCommand({ mgr: config.packageManager, packages: devDepdenencies, dev: true }))
}
}