fork-ts-checker-webpack-plugin
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,5 @@ | ||
## v1.1.1 | ||
* [Fix a regression w/ plugins like tsconfig-paths-webpack-plugin](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/260) | ||
## v1.1.0 | ||
@@ -2,0 +6,0 @@ |
@@ -18,4 +18,4 @@ import * as ts from 'typescript'; | ||
private compilationStarted; | ||
private readonly resolveModuleName; | ||
private readonly resolveTypeReferenceDirective; | ||
resolveModuleNames: ((moduleNames: string[], containingFile: string, reusedNames?: string[] | undefined, redirectedReference?: ts.ResolvedProjectReference | undefined) => (ts.ResolvedModule | undefined)[]) | undefined; | ||
resolveTypeReferenceDirectives: ((typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference?: ts.ResolvedProjectReference | undefined) => (ts.ResolvedTypeReferenceDirective | undefined)[]) | undefined; | ||
constructor(typescript: typeof ts, programConfigFile: string, compilerOptions: ts.CompilerOptions, checkSyntacticErrors: boolean, userResolveModuleName?: ResolveModuleName, userResolveTypeReferenceDirective?: ResolveTypeReferenceDirective); | ||
@@ -47,4 +47,2 @@ processChanges(): Promise<{ | ||
afterProgramCreate(program: ts.EmitAndSemanticDiagnosticsBuilderProgram): void; | ||
resolveModuleNames(moduleNames: string[], containingFile: string): (ts.ResolvedModuleFull | undefined)[]; | ||
resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string): (ts.ResolvedTypeReferenceDirective | undefined)[]; | ||
createDirectory(_path: string): void; | ||
@@ -51,0 +49,0 @@ writeFile(_path: string, _data: string, _writeByteOrderMark?: boolean): void; |
@@ -13,3 +13,2 @@ "use strict"; | ||
const VueProgram_1 = require("./VueProgram"); | ||
const resolution_1 = require("./resolution"); | ||
class CompilerHost { | ||
@@ -39,5 +38,16 @@ constructor(typescript, programConfigFile, compilerOptions, checkSyntacticErrors, userResolveModuleName, userResolveTypeReferenceDirective) { | ||
this.optionsToExtend = this.tsHost.optionsToExtend || {}; | ||
const { resolveModuleName, resolveTypeReferenceDirective } = resolution_1.makeResolutionFunctions(userResolveModuleName, userResolveTypeReferenceDirective); | ||
this.resolveModuleName = resolveModuleName; | ||
this.resolveTypeReferenceDirective = resolveTypeReferenceDirective; | ||
if (userResolveModuleName) { | ||
this.resolveModuleNames = (moduleNames, containingFile) => { | ||
return moduleNames.map(moduleName => { | ||
return userResolveModuleName(this.typescript, moduleName, containingFile, this.optionsToExtend, this).resolvedModule; | ||
}); | ||
}; | ||
} | ||
if (userResolveTypeReferenceDirective) { | ||
this.resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile) => { | ||
return typeDirectiveNames.map(typeDirectiveName => { | ||
return userResolveTypeReferenceDirective(this.typescript, typeDirectiveName, containingFile, this.optionsToExtend, this).resolvedTypeReferenceDirective; | ||
}); | ||
}; | ||
} | ||
} | ||
@@ -239,12 +249,2 @@ getProgram() { | ||
} | ||
resolveModuleNames(moduleNames, containingFile) { | ||
return moduleNames.map(moduleName => { | ||
return this.resolveModuleName(this.typescript, moduleName, containingFile, this.optionsToExtend, this).resolvedModule; | ||
}); | ||
} | ||
resolveTypeReferenceDirectives(typeDirectiveNames, containingFile) { | ||
return typeDirectiveNames.map(typeDirectiveName => { | ||
return this.resolveTypeReferenceDirective(this.typescript, typeDirectiveName, containingFile, this.optionsToExtend, this).resolvedTypeReferenceDirective; | ||
}); | ||
} | ||
// the functions below are use internally by typescript. we cannot use non-emitting version of incremental watching API | ||
@@ -251,0 +251,0 @@ // because it is |
{ | ||
"name": "fork-ts-checker-webpack-plugin", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Runs typescript type checker and linter on separate process.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
226598
2760