Skip to content

Commit 80e6d61

Browse files
committed
[shadcn4] Ensure dist directory exists before extracting CSS
1 parent 64ca1e9 commit 80e6d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shadcn4-theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build": "vite build && npm run prepack",
3333
"preview": "vite preview",
3434
"prepare": "svelte-kit sync || echo ''",
35-
"extract-css": "mv $(find .svelte-kit/output/client/_app/immutable/assets/ -name \"_page*.css\" | head -n 1) dist/styles.css",
35+
"extract-css": "mkdir -p dist && mv $(find .svelte-kit/output/client/_app/immutable/assets/ -name \"_page*.css\" | head -n 1) dist/styles.css",
3636
"prepack": "svelte-kit sync && svelte-package && npm run extract-css && publint",
3737
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
3838
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",

0 commit comments

Comments
 (0)