diff --git a/configs/tsconfig.json b/configs/tsconfig.json index 827dcde..d67def1 100644 --- a/configs/tsconfig.json +++ b/configs/tsconfig.json @@ -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 @@ -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/**/*"] }