makit-recipe-tsc
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -46,12 +46,10 @@ "use strict"; | ||
} | ||
// content = this.preCompile(content, filePath); | ||
// put into cache for ts compile host to get preCompile content | ||
// this.contentCache.set(filePath, content); | ||
const project = this.getProject(); | ||
// console.log(content); | ||
// const sourcrFile = createSourceFile(filePath, "content", this.compilerOptions.target, true) | ||
// program.emit(sourcrFile); | ||
project.addSourceFileAtPath(filePath); | ||
// throw error | ||
const diagnostics = project.getPreEmitDiagnostics(); | ||
if (diagnostics.length > 0) { | ||
throw new Error(project.formatDiagnosticsWithColorAndContext(diagnostics)); | ||
} | ||
return project.emit(); | ||
// this.denpency | ||
} | ||
@@ -58,0 +56,0 @@ getDenpencies(content, filePath) { |
{ | ||
"name": "makit-recipe-tsc", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"discription": "makit-recipe-tsc", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
624415
17960