Skip to content

Commit baff879

Browse files
authored
fix(cli): pin shadcn-vue version to fix wrong install directory (#68)
1 parent 5e72e34 commit baff879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (args.length >= 2 && args[0] === 'add') {
2929
const component = args[1]
3030
const targetUrl = new URL(`/${component}.json`, 'https://registry.ai-elements-vue.com').toString()
3131

32-
const fullCommand = `${commandPrefix} shadcn-vue@latest add ${targetUrl}`
32+
const fullCommand = `${commandPrefix} shadcn-vue@2.3.3 add ${targetUrl}`
3333
const result = spawnSync(fullCommand, {
3434
stdio: 'inherit',
3535
shell: true,
@@ -56,7 +56,7 @@ else {
5656
new URL(`/${item.name}.json`, 'https://registry.ai-elements-vue.com').toString(),
5757
)
5858

59-
const fullCommand = `${commandPrefix} shadcn-vue@latest add ${componentUrls.join(' ')}`
59+
const fullCommand = `${commandPrefix} shadcn-vue@2.3.3 add ${componentUrls.join(' ')}`
6060
const result = spawnSync(fullCommand, {
6161
stdio: 'inherit',
6262
shell: true,

0 commit comments

Comments
 (0)