fix: schema keys validation (#641)

* fix: schema keys validation

* chore: add changeset

* fix: update registry base url
This commit is contained in:
shadcn
2023-06-22 23:05:54 +04:00
committed by GitHub
parent 4ca9619efa
commit 658c710bce
3 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn-ui": patch
---
everything is new

View File

@@ -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({

View File

@@ -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