Skip to content

Commit 0391305

Browse files
committed
ensured watchDirs are relative to configDir for consistency
1 parent f2d8642 commit 0391305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = (rootDir, config = "faucet.js", // eslint-disable-next-line ind
1919
let { watchDirs } = config;
2020
/* eslint-disable indent */
2121
watchDirs = watchDirs ?
22-
watchDirs.map(dir => path.resolve(rootDir, dir)) :
23-
[rootDir];
22+
watchDirs.map(dir => path.resolve(configDir, dir)) :
23+
[configDir];
2424
/* eslint-enable indent */
2525
watcher = makeWatcher(watchDirs);
2626
}

0 commit comments

Comments
 (0)