Files
supabase/apps/www/tsconfig.json
Charis 5c1cf1a6ea fix: tsconfig auto-import resolution (#44496)
Ever since the update to TypeScript 6, IDE auto-imports are suggesting
"node_modules/package_name/...." rather than the correct "package_name".
This is due to our deprecated bare specifier wildcard in paths,
replacing this with a listing of all bare specifiers we currently
support (while migrating away) to restore auto-import suggestions.
2026-04-02 14:38:14 -04:00

52 lines
1.6 KiB
JSON

{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "tsconfig/nextjs.json",
"compilerOptions": {
"allowJs": true,
"lib": ["dom", "dom.iterable", "esnext"],
"paths": {
// @deprecated: use @/ instead of importing from root
"~/*": ["./*"],
"@/*": ["./*"],
"contentlayer/generated": ["./.contentlayer/generated"],
// @deprecated: use @/ prefix instead
".generated/*": ["./.generated/*"],
// @deprecated: use @/ prefix instead
"app/*": ["./app/*"],
// @deprecated: use @/ prefix instead
"components/*": ["./components/*"],
// @deprecated: use @/ prefix instead
"data/*": ["./data/*"],
// @deprecated: use @/ prefix instead
"hooks/*": ["./hooks/*"],
// @deprecated: use @/ prefix instead
"internals/*": ["./internals/*"],
// @deprecated: use @/ prefix instead
"layouts/*": ["./layouts/*"],
// @deprecated: use @/ prefix instead
"lib/*": ["./lib/*"],
// @deprecated: use @/ prefix instead
"pages/*": ["./pages/*"],
// @deprecated: use @/ prefix instead
"public/*": ["./public/*"],
// @deprecated: use @/ prefix instead
"scripts/*": ["./scripts/*"],
// @deprecated: use @/ prefix instead
"styles/*": ["./styles/*"],
// @deprecated: use @/ prefix instead
"types": ["./types"],
// @deprecated: use @/ prefix instead
"types/*": ["./types/*"]
},
"plugins": [{ "name": "next" }]
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".contentlayer/generated"
],
"exclude": ["node_modules", "supabase"]
}