Skip to content

Commit

Permalink
Merge branch 'shadcn/cli-monorepo' of github.com:shadcn-ui/ui into sh…
Browse files Browse the repository at this point in the history
…adcn/cli-monorepo
  • Loading branch information
shadcn committed Dec 20, 2024
2 parents e4bf558 + a458a9c commit afd8617
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/www/actions/edit-in-v0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export async function editInV0({
// Remove v0 prefix from the name
registryItem.name = registryItem.name.replace(/^v0-/, "")

const projectName = capitalCase(name.replace(/\d+/g, ""))
registryItem.description = registryItem.description || projectName

// Replace `@/registry/new-york/` in files.
registryItem.files = registryItem.files?.map((file) => {
if (file.content?.includes("@/registry/new-york/ui")) {
Expand All @@ -53,7 +56,7 @@ export async function editInV0({
url,
},
meta: {
project: capitalCase(name.replace(/\d+/g, "")),
project: projectName,
file: `${name}.tsx`,
},
}
Expand Down

0 comments on commit afd8617

Please sign in to comment.