mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
fix: updated error msg for jsconfig in cli (#1696)
* fix: updated error msg for jsconfig in cli * chore: add changeset * style(cli): format --------- Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
5
.changeset/smart-pants-smile.md
Normal file
5
.changeset/smart-pants-smile.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shadcn-ui": patch
|
||||
---
|
||||
|
||||
use jsconfig for non-ts projects
|
||||
@@ -65,7 +65,9 @@ export async function resolveConfigPaths(cwd: string, config: RawConfig) {
|
||||
|
||||
if (tsConfig.resultType === "failed") {
|
||||
throw new Error(
|
||||
`Failed to load tsconfig.json. ${tsConfig.message ?? ""}`.trim()
|
||||
`Failed to load ${config.tsx ? "tsconfig" : "jsconfig"}.json. ${
|
||||
tsConfig.message ?? ""
|
||||
}`.trim()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user