fix(tools): Use polling to reliably watch challenges
This commit is contained in:
committed by
mrugesh
parent
438e7d4c51
commit
cba35969f0
@ -28,7 +28,8 @@ exports.sourceNodes = function sourceChallengesSourceNodes(
|
|||||||
const { createNode } = actions;
|
const { createNode } = actions;
|
||||||
const watcher = chokidar.watch(curriculumPath, {
|
const watcher = chokidar.watch(curriculumPath, {
|
||||||
ignored: /(^|[\/\\])\../,
|
ignored: /(^|[\/\\])\../,
|
||||||
persistent: true
|
persistent: true,
|
||||||
|
usePolling: true
|
||||||
});
|
});
|
||||||
|
|
||||||
watcher.on('ready', sourceAndCreateNodes).on('change', filePath =>
|
watcher.on('ready', sourceAndCreateNodes).on('change', filePath =>
|
||||||
|
Reference in New Issue
Block a user