fork-ts-checker-webpack-plugin
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -73,3 +73,3 @@ "use strict"; | ||
*/ | ||
ForkTsCheckerWebpackPlugin.version = '7.2.0'; // will be replaced by the @semantic-release/exec | ||
ForkTsCheckerWebpackPlugin.version = '7.2.1'; // will be replaced by the @semantic-release/exec | ||
/** | ||
@@ -76,0 +76,0 @@ * Default pools for the plugin concurrency limit |
@@ -111,3 +111,3 @@ "use strict"; | ||
invokeFileCreated(path) { | ||
const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
const normalizedPath = normalizeAndResolvePath(path); | ||
invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Created); | ||
@@ -118,3 +118,3 @@ invokeDirectoryWatchers(normalizedPath); | ||
invokeFileChanged(path) { | ||
const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
const normalizedPath = normalizeAndResolvePath(path); | ||
if (deletedFiles.get(normalizedPath) || !fileWatcherCallbacksMap.has(normalizedPath)) { | ||
@@ -130,3 +130,3 @@ invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Created); | ||
invokeFileDeleted(path) { | ||
const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
const normalizedPath = normalizeAndResolvePath(path); | ||
if (!deletedFiles.get(normalizedPath)) { | ||
@@ -147,3 +147,3 @@ invokeFileWatchers(path, typescript_1.typescript.FileWatcherEventKind.Deleted); | ||
function createWatcher(watchersMap, path, callback) { | ||
const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
const normalizedPath = normalizeAndResolvePath(path); | ||
const watchers = watchersMap.get(normalizedPath) || []; | ||
@@ -166,3 +166,3 @@ const nextWatchers = [...watchers, callback]; | ||
function invokeFileWatchers(path, event) { | ||
const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
const normalizedPath = normalizeAndResolvePath(path); | ||
if (normalizedPath.endsWith('.js')) { | ||
@@ -180,3 +180,3 @@ // trigger relevant .d.ts file watcher - handles the case, when we have webpack watcher | ||
function invokeDirectoryWatchers(path) { | ||
const normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
const normalizedPath = normalizeAndResolvePath(path); | ||
const directory = (0, path_1.dirname)(normalizedPath); | ||
@@ -198,2 +198,12 @@ if (ignoredPaths.some((ignoredPath) => (0, forward_slash_1.forwardSlash)(normalizedPath).includes(ignoredPath))) { | ||
} | ||
function normalizeAndResolvePath(path) { | ||
let normalizedPath = real_file_system_1.realFileSystem.normalizePath(path); | ||
try { | ||
normalizedPath = real_file_system_1.realFileSystem.realPath(normalizedPath); | ||
} | ||
catch (error) { | ||
// ignore error - maybe file doesn't exist | ||
} | ||
return normalizedPath; | ||
} | ||
function isArtifact(path) { | ||
@@ -200,0 +210,0 @@ return ((artifacts.dirs.some((dir) => path.includes(dir)) || |
{ | ||
"name": "fork-ts-checker-webpack-plugin", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"description": "Runs typescript type checker and linter on separate process.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
227287
4302