@jsrepo/shadcn
v8.0.1
Published
A package to help you distribute your jsrepo registry as a shadcn registry.
Maintainers
Readme
@jsrepo/shadcn
A package to help you distribute your jsrepo registry as a shadcn registry.
Usage
Install the package:
pnpm install @jsrepo/shadcn -DUse 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({
// ...
// make sure you still include the output
outputs: [output({ dir: "./public/r" })],
}),
});