Skip to content

Commit

Permalink
tsconfig improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MP281X committed Jul 30, 2024
1 parent 042e564 commit 7536e7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"allowImportingTsExtensions": true, // allow importing ts file
"allowSyntheticDefaultImports": true, // impot X from "x" instead of import * as X from "x"
"forceConsistentCasingInFileNames": true, // no different casing importing the same file
"useDefineForClassFields": true, // use the TC39 class fields instead of the typescript implementation
"verbatimModuleSyntax": true, // if i only import a type from a file don't drop the import after compilation
"noEmit": true, // don't output code
"sourceMap": true, // enable sourcemap
Expand All @@ -47,9 +48,10 @@
"incremental": true, // cache some informations about the types to speed up the next typechecks
"tsBuildInfoFile": ".tsbuildinfo", // set the name of the cache file

"baseUrl": "${configDir}" // path alias root
"baseUrl": "${configDir}", // path alias root
"rootDirs": ["${configDir}", "${configDir}/.codegen"] // virtual root for codegen files
},

"exclude": ["${configDir}/**/node_modules", "${configDir}/**/dist", "${configDir}/**/.*"],
"include": ["${configDir}/src/**/*", "${configDir}/*.config.*", "${configDir}/index.ts", "${configDir}/sse.g.ts"]
"include": ["${configDir}/src/**/*", "${configDir}/*.config.*", "${configDir}/index.ts", "${configDir}/.codegen/**/*"]
}

0 comments on commit 7536e7e

Please sign in to comment.