Capítulo 95 de 108
shadcn/ui components are authored in TypeScript, but a JavaScript-only opt-out is supported via the tsx flag in components.json.
tsx: false: In components.json, disables TypeScript output; the CLI installs the JavaScript version of components instead.jsconfig.json: JS equivalent of tsconfig.json paths, needed to resolve the @/* import alias in JS projects.{
"style": "new-york",
"rsc": false,
"tsx": false,
"tailwind": { "config": "", "css": "src/app/globals.css", "baseColor": "zinc", "cssVariables": true },
"iconLibrary": "lucide",
"aliases": { "components": "@/components", "utils": "@/lib/utils", "ui": "@/components/ui", "lib": "@/lib", "hooks": "@/hooks" }
}
components.json completo configurado pra projeto JavaScript puro (tsx: false).{
"compilerOptions": { "paths": { "@/*": ["./*"] } }
}
@/* sem TypeScript.tsx: false flag.jsconfig.json must mirror the paths mapping normally done in tsconfig.json.