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",
"type": "module",
"version": "0.10.2",
"version": "0.10.3",
"files": [
"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",
"type": "module",
"version": "0.10.2",
"version": "0.10.3",
"private": true,
"packageManager": "pnpm@8.15.5",
"license": "MIT",

View File

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

View File

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

View File

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