jsrepo v3

This commit is contained in:
David Haz
2025-12-15 23:50:24 +02:00
parent 9214481555
commit e621971723
119 changed files with 401 additions and 2197 deletions

View File

@@ -14,9 +14,9 @@ export interface CodeObjectInput {
}
export function createCodeObject(code: string, path: string, data: CodeObjectInput): CodeObject {
const [category, componentName] = path.split('/');
const [, componentName] = path.split('/');
return {
cli: `npx jsrepo add https://vue-bits.dev/ui/${category}/${componentName}`,
cli: `npx jsrepo@latest add https://vue-bits.dev/r/${componentName}`,
...(data.installation && { installation: data.installation }),
...(data.usage && { usage: data.usage }),
code,