Skip to content

Commit

Permalink
fix: schema keys validation (#641)
Browse files Browse the repository at this point in the history
* fix: schema keys validation

* chore: add changeset

* fix: update registry base url
  • Loading branch information
shadcn committed Jun 22, 2023
1 parent 4ca9619 commit 658c710
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-buttons-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-ui": patch
---

everything is new
1 change: 1 addition & 0 deletions packages/cli/src/utils/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const explorer = cosmiconfig("components", {

export const rawConfigSchema = z
.object({
$schema: z.string().optional(),
style: z.string(),
rsc: z.coerce.boolean().default(false),
tailwind: z.object({
Expand Down
5 changes: 1 addition & 4 deletions packages/cli/src/utils/registry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import { HttpsProxyAgent } from "https-proxy-agent"
import fetch from "node-fetch"
import * as z from "zod"

// const baseUrl = process.env.COMPONENTS_REGISTRY_URL ?? "https://ui.shadcn.com"
const baseUrl =
process.env.COMPONENTS_REGISTRY_URL ??
"https://ui-git-feat-minor-updates-shadcn-pro.vercel.app"
const baseUrl = process.env.COMPONENTS_REGISTRY_URL ?? "https://ui.shadcn.com"
const agent = process.env.https_proxy
? new HttpsProxyAgent(process.env.https_proxy)
: undefined
Expand Down

0 comments on commit 658c710

Please sign in to comment.