Merge branch 'dev' into patch-1

This commit is contained in:
Sadegh Barati 2024-04-10 20:52:21 +03:30
commit 9929da96a7
6 changed files with 23 additions and 15 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "www", "name": "www",
"type": "module", "type": "module",
"version": "0.10.2", "version": "0.10.3",
"files": [ "files": [
"dist" "dist"
], ],

View File

@ -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"
}
}
```

View File

@ -1,7 +1,7 @@
{ {
"name": "shadcn-vue", "name": "shadcn-vue",
"type": "module", "type": "module",
"version": "0.10.2", "version": "0.10.3",
"private": true, "private": true,
"packageManager": "pnpm@8.15.5", "packageManager": "pnpm@8.15.5",
"license": "MIT", "license": "MIT",

View File

@ -1,7 +1,7 @@
{ {
"name": "shadcn-vue", "name": "shadcn-vue",
"type": "module", "type": "module",
"version": "0.10.2", "version": "0.10.3",
"description": "Add components to your apps.", "description": "Add components to your apps.",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"

View File

@ -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,
}), }),

View File

@ -1,7 +1,7 @@
{ {
"name": "shadcn-nuxt", "name": "shadcn-nuxt",
"type": "module", "type": "module",
"version": "0.10.2", "version": "0.10.3",
"description": "Add shadcn-vue module to Nuxt", "description": "Add shadcn-vue module to Nuxt",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"