@jsrepo/shadcn

A package to help you distribute your jsrepo registry as a shadcn registry.
Usage
Install the package:
pnpm install @jsrepo/shadcn -D
Use the output to output a shadcn registry:
import { defineConfig } from "jsrepo";
import { output } from "@jsrepo/shadcn/output";
export default defineConfig({
registry: {
outputs: [output({ dir: "./public/r" })],
},
});
If you want to ensure compatibility with the shadcn registry while losing access to some of the features of the jsrepo registry you can use the defineShadcnRegistry function. This can also be useful for incremental adoption as it closely matches the shadcn registry schema.
import { defineShadcnRegistry, output } from "@jsrepo/shadcn";
export default defineConfig({
registry: defineShadcnRegistry({
outputs: [output({ dir: "./public/r" })],
}),
});