makit-recipe-tsc
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,8 @@ | ||
## [1.1.2](https://github.com/searchfe/makit-recipe-tsc/compare/v1.1.1...v1.1.2) (2021-03-05) | ||
### Performance Improvements | ||
* only emit target file ([9db13de](https://github.com/searchfe/makit-recipe-tsc/commit/9db13deef67a7ec34221f1cbee65af513311f6ee)) | ||
## [1.1.1](https://github.com/searchfe/makit-recipe-tsc/compare/v1.1.0...v1.1.1) (2021-02-25) | ||
@@ -2,0 +9,0 @@ |
@@ -54,8 +54,5 @@ "use strict"; | ||
this.fileNeedToRefreshMap[filePath] = true; | ||
// throw error | ||
const diagnostics = sourcefile.getPreEmitDiagnostics(); | ||
if (diagnostics.length > 0) { | ||
throw new Error(project.formatDiagnosticsWithColorAndContext(diagnostics)); | ||
} | ||
return project.emit(); | ||
return project.emit({ | ||
targetSourceFile: sourcefile | ||
}); | ||
} | ||
@@ -120,4 +117,2 @@ getDenpencies(content, filePath) { | ||
}); | ||
// 先添加 baseDir 下的所有 d.ts,防止编译单文件时未加载全局变量/类型会报错 | ||
this.project.addSourceFilesAtPaths(this.baseDir + '/**/*.d.ts'); | ||
} | ||
@@ -124,0 +119,0 @@ return this.project; |
{ | ||
"name": "makit-recipe-tsc", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"discription": "makit-recipe-tsc", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
728157
21334