fix(tools): Use polling to reliably watch challenges

This commit is contained in:
Oliver Eyton-Williams
2019-06-28 14:26:11 +02:00
committed by mrugesh
parent 438e7d4c51
commit cba35969f0

View File

@ -28,7 +28,8 @@ exports.sourceNodes = function sourceChallengesSourceNodes(
const { createNode } = actions;
const watcher = chokidar.watch(curriculumPath, {
ignored: /(^|[\/\\])\../,
persistent: true
persistent: true,
usePolling: true
});
watcher.on('ready', sourceAndCreateNodes).on('change', filePath =>