fork-ts-checker-webpack-plugin 7.2.2 → 7.2.3
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.
package/lib/plugin.js
CHANGED
|
@@ -70,7 +70,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
70
70
|
/**
|
|
71
71
|
* Current version of the plugin
|
|
72
72
|
*/
|
|
73
|
-
ForkTsCheckerWebpackPlugin.version = '7.2.
|
|
73
|
+
ForkTsCheckerWebpackPlugin.version = '7.2.3'; // will be replaced by the @semantic-release/exec
|
|
74
74
|
/**
|
|
75
75
|
* Default pools for the plugin concurrency limit
|
|
76
76
|
*/
|
|
@@ -10,6 +10,8 @@ const minimatch_1 = __importDefault(require("minimatch"));
|
|
|
10
10
|
const files_change_1 = require("../files-change");
|
|
11
11
|
const infrastructure_logger_1 = require("../infrastructure-logger");
|
|
12
12
|
const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp'];
|
|
13
|
+
// we ignore package.json file because of https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/674
|
|
14
|
+
const BUILTIN_IGNORED_FILES = ['package.json'];
|
|
13
15
|
function createIsIgnored(ignored, excluded) {
|
|
14
16
|
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
15
17
|
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
@@ -27,6 +29,7 @@ function createIsIgnored(ignored, excluded) {
|
|
|
27
29
|
});
|
|
28
30
|
ignoredFunctions.push((path) => excluded.some((excludedPath) => path.startsWith(excludedPath)));
|
|
29
31
|
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`)));
|
|
32
|
+
ignoredFunctions.push((path) => BUILTIN_IGNORED_FILES.some((ignoredFile) => path.endsWith(`/${ignoredFile}`)));
|
|
30
33
|
return function isIgnored(path) {
|
|
31
34
|
return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
|
|
32
35
|
};
|