mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
* refactor(create): consolidate create code into a single route group Move all create code from app/(app)/create and app/(create) into the nested route group app/(app)/(create), and the preview iframe pages into app/(view). URLs are unchanged: /create keeps the (app) chrome (and the header now persists across / <-> /create), /init keeps its root-level path for the CLI contract, and /preview stays chrome-less for the customizer iframe. Registry sources and published payloads are untouched: two temporary tsconfig path aliases map @/app/(create)/* and the legacy @/app/(app)/create/* onto the new location. App code imports the real path. Also inline parse-config and build-instructions into the create lib so the init routes are thin HTTP handlers, and remove the icon-placeholder and lib re-export shims. * fix
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2017",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
// Temp aliases: registry sources import @/app/(create)/* (ships
|
|
// verbatim in published registry payloads) and a handful still use
|
|
// the legacy @/app/(app)/create/* path. The files actually live under
|
|
// app/(app)/(create)/*. Remove once the registry imports (and
|
|
// payloads) are migrated to the real path.
|
|
"@/app/(create)/*": ["./app/(app)/(create)/*"],
|
|
"@/app/(app)/create/*": ["./app/(app)/(create)/*"],
|
|
"@/*": ["./*"],
|
|
"react": ["./node_modules/@types/react"]
|
|
}
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".next/types/**/*.ts",
|
|
"scripts/build-registry.mts",
|
|
"next.config.mjs",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules"]
|
|
}
|