Typescript TSConfig

  "references": [
    { "path": "modules/xxxx" },
    { "path": "modules/xxx" },
  ],
 
reference 可以提高构建速度
 
"compilerOptions": {
    "paths": {
      "xx": ["modules/xxx/src/core/main/ts/xx/Main"],
    }
当使用import的时候,如何查找包的引用
 
{
"files": [
"core.ts",
"sys.ts",
"types.ts",
"scanner.ts",
"parser.ts",
"utilities.ts",
"binder.ts",
"checker.ts",
"tsc.ts"
]
}
指定编译哪些文件
 
 
{
"include": ["src/**/*", "tests/**/*"]
}
当文件数量比较大,可以使用 include, 允许使用通配符
 
posted @ 2022-12-15 17:54  内心澎湃的水晶侠  阅读(40)  评论(0编辑  收藏  举报