fork-ts-checker-webpack-plugin 6.5.1 → 6.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
76
76
|
/**
|
|
77
77
|
* Current version of the plugin
|
|
78
78
|
*/
|
|
79
|
-
ForkTsCheckerWebpackPlugin.version = '6.5.
|
|
79
|
+
ForkTsCheckerWebpackPlugin.version = '6.5.2'; // will be replaced by the @semantic-release/exec
|
|
80
80
|
/**
|
|
81
81
|
* Default pools for the plugin concurrency limit
|
|
82
82
|
*/
|
|
@@ -5,9 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const substract_1 = __importDefault(require("../utils/array/substract"));
|
|
7
7
|
const unique_1 = __importDefault(require("../utils/array/unique"));
|
|
8
|
+
// we ignore package.json file because of https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/674
|
|
9
|
+
const IGNORED_FILES = ['package.json'];
|
|
10
|
+
const isIgnoredFile = (file) => IGNORED_FILES.some((ignoredFile) => file.endsWith(`/${ignoredFile}`) || file.endsWith(`\\${ignoredFile}`));
|
|
8
11
|
const compilerFilesChangeMap = new WeakMap();
|
|
9
12
|
function getFilesChange(compiler) {
|
|
10
|
-
|
|
13
|
+
const { changedFiles = [], deletedFiles = [] } = compilerFilesChangeMap.get(compiler) || {
|
|
14
|
+
changedFiles: [],
|
|
15
|
+
deletedFiles: [],
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
changedFiles: changedFiles.filter((changedFile) => !isIgnoredFile(changedFile)),
|
|
19
|
+
deletedFiles: deletedFiles.filter((deletedFile) => !isIgnoredFile(deletedFile)),
|
|
20
|
+
};
|
|
11
21
|
}
|
|
12
22
|
exports.getFilesChange = getFilesChange;
|
|
13
23
|
function updateFilesChange(compiler, change) {
|
|
@@ -8,8 +8,6 @@ const path_1 = require("path");
|
|
|
8
8
|
const reporter_1 = require("../reporter");
|
|
9
9
|
const minimatch_1 = __importDefault(require("minimatch"));
|
|
10
10
|
const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp'];
|
|
11
|
-
// we ignore package.json file because of https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/674
|
|
12
|
-
const BUILTIN_IGNORED_FILES = ['package.json'];
|
|
13
11
|
function createIsIgnored(ignored, excluded) {
|
|
14
12
|
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
15
13
|
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
@@ -29,8 +27,7 @@ function createIsIgnored(ignored, excluded) {
|
|
|
29
27
|
}
|
|
30
28
|
});
|
|
31
29
|
ignoredFunctions.push((path) => excluded.some((excludedPath) => path.startsWith(excludedPath)));
|
|
32
|
-
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`)));
|
|
33
|
-
ignoredFunctions.push((path) => BUILTIN_IGNORED_FILES.some((ignoredFile) => path.endsWith(`/${ignoredFile}`)));
|
|
30
|
+
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`) || path.includes(`\\${ignoredDir}\\`)));
|
|
34
31
|
return function isIgnored(path) {
|
|
35
32
|
return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
|
|
36
33
|
};
|