refactor: Implement @/* path aliases and move dotenv imports

This commit is contained in:
Aman Varshney
2025-04-18 08:43:24 +05:30
parent 7578f2918a
commit 933c4acabd
5 changed files with 40 additions and 24 deletions

View File

@@ -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
}
}

View 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
}
}