Skip to content

Commit 7d68474

Browse files
committed
Update build and registry scripts in package.json
Refactored the build process to run registry:build before next build. Split shadcn build into a separate shadcn:build script and updated registry:build to use it for improved script organization.
1 parent e051d13 commit 7d68474

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"build": "pnpm run build",
6+
"build": "pnpm run registry:build && next build",
77
"dev": "next dev --turbo",
88
"start": "next start",
99
"postinstall": "fumadocs-mdx",
10-
"registry:build": "shadcn build && tsx scripts/build-registry.ts && biome format --write registry/__index__.tsx",
10+
"shadcn:build": "shadcn build",
11+
"registry:build": "pnpm run shadcn:build && tsx scripts/build-registry.ts && biome format --write registry/__index__.tsx",
1112
"format": "biome format --write .",
1213
"format:check": "biome format .",
1314
"lint": "biome lint .",

0 commit comments

Comments
 (0)