Update package dependencies, refactor TypeScript configuration, and enhance API server code with improved type definitions. Modify GitHub Actions workflow to verify API build success and streamline build scripts for better maintainability.
This commit is contained in:
37
tsconfig.api.json
Normal file
37
tsconfig.api.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"lib": ["ES2020"],
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": false,
|
||||
"noImplicitAny": false,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src/server.ts",
|
||||
"src/lib/api/**/*",
|
||||
"src/lib/db/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"src/components/**/*",
|
||||
"src/pages/**/*",
|
||||
"src/contexts/**/*",
|
||||
"src/hooks/**/*",
|
||||
"src/utils/**/*",
|
||||
"src/lib/utils.ts",
|
||||
"src/main.tsx",
|
||||
"src/App.tsx"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user