Skip to content

Commit

Permalink
fix(cli): fetching style
Browse files Browse the repository at this point in the history
  • Loading branch information
hngngn committed Feb 9, 2024
1 parent 0e05c66 commit 9059bc6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/gentle-donkeys-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-solid": patch
---

Define default style
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bin": "./dist/index.js",
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"build": "tsup --minify",
"start": "node dist/index.js"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export const add = new Command()
}

const tree = await resolveTree(registryIndex, selectedComponents)
const payload = await fetchTree(config.style, tree)

// If new styling is added, the config.style property will be reinstated.
const payload = await fetchTree("default", tree)
const baseColor = await getRegistryBaseColor(
config.tailwind.baseColor
)
Expand Down
11 changes: 5 additions & 6 deletions packages/cli/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { defineConfig } from "tsup"

export default defineConfig({
clean: true,
entry: ["src/index.ts"],
format: ["esm"],
target: "esnext",
outDir: "dist",
minify: true,
clean: true,
entry: ["src/index.ts"],
format: ["esm"],
target: "esnext",
outDir: "dist",
})

0 comments on commit 9059bc6

Please sign in to comment.