fork-ts-checker-webpack-plugin 6.5.0 → 6.5.1
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.1'; // will be replaced by the @semantic-release/exec
|
|
80
80
|
/**
|
|
81
81
|
* Default pools for the plugin concurrency limit
|
|
82
82
|
*/
|
|
@@ -8,6 +8,8 @@ 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'];
|
|
11
13
|
function createIsIgnored(ignored, excluded) {
|
|
12
14
|
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
13
15
|
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
@@ -28,6 +30,7 @@ function createIsIgnored(ignored, excluded) {
|
|
|
28
30
|
});
|
|
29
31
|
ignoredFunctions.push((path) => excluded.some((excludedPath) => path.startsWith(excludedPath)));
|
|
30
32
|
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`)));
|
|
33
|
+
ignoredFunctions.push((path) => BUILTIN_IGNORED_FILES.some((ignoredFile) => path.endsWith(`/${ignoredFile}`)));
|
|
31
34
|
return function isIgnored(path) {
|
|
32
35
|
return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
|
|
33
36
|
};
|