fix(CLI): shadcn-vue init not installing all dependencies or devDependencies (#469)
This commit is contained in:
parent
75d10d5b8e
commit
9712ba9bae
|
|
@ -292,19 +292,13 @@ export async function runInit(cwd: string, config: Config) {
|
||||||
config.style === 'new-york' ? ['@radix-icons/vue'] : ['lucide-vue-next'],
|
config.style === 'new-york' ? ['@radix-icons/vue'] : ['lucide-vue-next'],
|
||||||
).filter(Boolean)
|
).filter(Boolean)
|
||||||
|
|
||||||
async function addNuxtDevDeps() {
|
|
||||||
if (config.framework === 'nuxt') {
|
|
||||||
await addDevDependency(PROJECT_DEPENDENCIES.nuxt, {
|
|
||||||
cwd,
|
|
||||||
silent: true,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
await Promise.allSettled(
|
await Promise.allSettled(
|
||||||
[
|
[
|
||||||
addNuxtDevDeps(),
|
config.framework === 'nuxt' && await addDevDependency(PROJECT_DEPENDENCIES.nuxt, {
|
||||||
addDependency(deps, {
|
cwd,
|
||||||
|
silent: true,
|
||||||
|
}),
|
||||||
|
await addDependency(deps, {
|
||||||
cwd,
|
cwd,
|
||||||
silent: true,
|
silent: true,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user