This commit is contained in:
Jonasz Bigda
2023-03-25 21:51:42 +01:00
parent 0db1d5117e
commit b332e9ceb0
1044 changed files with 37502 additions and 63938 deletions

8
node_modules/chokidar/index.js generated vendored
View File

@@ -48,7 +48,8 @@ const {
EMPTY_FN,
isWindows,
isMacos
isMacos,
isIBMi
} = require('./lib/constants');
const stat = promisify(fs.stat);
@@ -330,6 +331,11 @@ constructor(_opts) {
opts.usePolling = isMacos;
}
// Always default to polling on IBM i because fs.watch() is not available on IBM i.
if(isIBMi) {
opts.usePolling = true;
}
// Global override (useful for end-developers that need to force polling for all
// instances of chokidar, regardless of usage/dependency depth)
const envPoll = process.env.CHOKIDAR_USEPOLLING;