From 75d10d5b8e3135d9897131450aac676ffe3fbd13 Mon Sep 17 00:00:00 2001 From: Jonathan Wilke Date: Thu, 4 Apr 2024 14:34:38 +0200 Subject: [PATCH 1/3] docs: add documentation for aliases.ui (#466) --- apps/www/src/content/docs/components-json.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/www/src/content/docs/components-json.md b/apps/www/src/content/docs/components-json.md index 75ce9598..84473bda 100644 --- a/apps/www/src/content/docs/components-json.md +++ b/apps/www/src/content/docs/components-json.md @@ -146,3 +146,17 @@ Import alias for your components. } } ``` + +### aliases.ui + +Import alias for `ui` components. + +The CLI will use the `aliases.ui` value to determine where to place your `ui` components. Use this config if you want to customize the installation directory for your `ui` components. + +```json title="components.json" +{ + "aliases": { + "ui": "@/app/ui" + } +} +``` From 9712ba9baeb507a871e8a64bdf92e990050e0f71 Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Sat, 6 Apr 2024 06:27:20 +0330 Subject: [PATCH 2/3] fix(CLI): `shadcn-vue init` not installing all dependencies or devDependencies (#469) --- packages/cli/src/commands/init.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index 0e96d1f7..e40aba28 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -292,19 +292,13 @@ export async function runInit(cwd: string, config: Config) { config.style === 'new-york' ? ['@radix-icons/vue'] : ['lucide-vue-next'], ).filter(Boolean) - async function addNuxtDevDeps() { - if (config.framework === 'nuxt') { - await addDevDependency(PROJECT_DEPENDENCIES.nuxt, { - cwd, - silent: true, - }) - } - } - await Promise.allSettled( [ - addNuxtDevDeps(), - addDependency(deps, { + config.framework === 'nuxt' && await addDevDependency(PROJECT_DEPENDENCIES.nuxt, { + cwd, + silent: true, + }), + await addDependency(deps, { cwd, silent: true, }), From 92d3e2c7f060e9830ccda28196493c90ca0ac23a Mon Sep 17 00:00:00 2001 From: zernonia Date: Sat, 6 Apr 2024 11:22:45 +0800 Subject: [PATCH 3/3] chore: release v0.10.3 --- apps/www/package.json | 2 +- package.json | 2 +- packages/cli/package.json | 2 +- packages/module/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/www/package.json b/apps/www/package.json index 39a33ced..1b1ba221 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -1,7 +1,7 @@ { "name": "www", "type": "module", - "version": "0.10.2", + "version": "0.10.3", "files": [ "dist" ], diff --git a/package.json b/package.json index 71e2b697..97e3dcf0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shadcn-vue", "type": "module", - "version": "0.10.2", + "version": "0.10.3", "private": true, "packageManager": "pnpm@8.15.5", "license": "MIT", diff --git a/packages/cli/package.json b/packages/cli/package.json index 22074f67..734701c0 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "shadcn-vue", "type": "module", - "version": "0.10.2", + "version": "0.10.3", "description": "Add components to your apps.", "publishConfig": { "access": "public" diff --git a/packages/module/package.json b/packages/module/package.json index 5dff2f3c..2fb6df44 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -1,7 +1,7 @@ { "name": "shadcn-nuxt", "type": "module", - "version": "0.10.2", + "version": "0.10.3", "description": "Add shadcn-vue module to Nuxt", "publishConfig": { "access": "public"