mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
refactor: Implement @/* path aliases and move dotenv imports
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"verbatimModuleSyntax": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"baseUrl": "./",
|
||||
"outDir": "./dist",
|
||||
"types": ["node", "bun"],
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "hono/jsx"
|
||||
},
|
||||
"tsc-alias": {
|
||||
"resolveFullPaths": true
|
||||
}
|
||||
}
|
||||
29
apps/cli/templates/backend/server-base/tsconfig.json.hbs
Normal file
29
apps/cli/templates/backend/server-base/tsconfig.json.hbs
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"verbatimModuleSyntax": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"outDir": "./dist",
|
||||
"types": [
|
||||
{{#if (eq runtime 'node')}}
|
||||
"node"
|
||||
{{else if (eq runtime 'bun')}}
|
||||
"bun"
|
||||
{{else}}
|
||||
"node", "bun"
|
||||
{{/if}}
|
||||
],
|
||||
"jsx": "react-jsx"{{#if (eq backend 'hono')}},
|
||||
"jsxImportSource": "hono/jsx"{{/if}}
|
||||
},
|
||||
"tsc-alias": {
|
||||
"resolveFullPaths": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user