fork-ts-checker-webpack-plugin 6.2.4 → 6.2.5
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.
|
@@ -65,7 +65,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
65
65
|
/**
|
|
66
66
|
* Current version of the plugin
|
|
67
67
|
*/
|
|
68
|
-
ForkTsCheckerWebpackPlugin.version = '6.2.
|
|
68
|
+
ForkTsCheckerWebpackPlugin.version = '6.2.5'; // will be replaced by the @semantic-release/exec
|
|
69
69
|
/**
|
|
70
70
|
* Default pool for the plugin concurrency limit
|
|
71
71
|
*/
|
|
@@ -10,12 +10,22 @@ const minimatch_1 = __importDefault(require("minimatch"));
|
|
|
10
10
|
const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp'];
|
|
11
11
|
function createIsIgnored(ignored) {
|
|
12
12
|
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
13
|
-
const ignoredFunctions = ignoredPatterns
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
14
|
+
// ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
|
|
15
|
+
if (typeof pattern === 'string') {
|
|
16
|
+
return (path) => minimatch_1.default(path, pattern);
|
|
17
|
+
}
|
|
18
|
+
else if (typeof pattern === 'function') {
|
|
19
|
+
return pattern;
|
|
20
|
+
}
|
|
21
|
+
else if (pattern instanceof RegExp) {
|
|
22
|
+
return (path) => pattern.test(path);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
// fallback to no-ignore function
|
|
26
|
+
return () => false;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
19
29
|
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`)));
|
|
20
30
|
return function isIgnored(path) {
|
|
21
31
|
return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
|
|
@@ -4,7 +4,7 @@ interface WatchFileSystemOptions {
|
|
|
4
4
|
aggregateTimeout: number;
|
|
5
5
|
poll: boolean;
|
|
6
6
|
followSymlinks: boolean;
|
|
7
|
-
ignored: string | RegExp | (string | RegExp)[];
|
|
7
|
+
ignored: string | RegExp | Function | (string | RegExp | Function)[];
|
|
8
8
|
}
|
|
9
9
|
interface Watchpack extends EventEmitter {
|
|
10
10
|
_onChange(item: string, mtime: number, file: string, type?: string): void;
|