Skip to content

Commit 6e870c3

Browse files
authored
feat(shadcn): copy registry.json for build command (#7972)
* feat(shadcn): copy registry.json on build * chore: changeset
1 parent 68aa338 commit 6e870c3

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.changeset/lazy-readers-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn": minor
3+
---
4+
5+
copy registry.json on build

packages/shadcn/src/commands/build.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ export const build = new Command()
8989
)
9090
}
9191

92+
// Copy registry.json to the output directory.
93+
await fs.copyFile(
94+
resolvePaths.registryFile,
95+
path.resolve(resolvePaths.outputDir, "registry.json")
96+
)
97+
9298
buildSpinner.succeed("Building registry.")
9399
} catch (error) {
94100
logger.break()

0 commit comments

Comments
 (0)