« get me outta code hell

infra, content: use watchPath variable where appropriate - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-08 08:49:54 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-08 08:49:54 -0300
commit40729920984ca1362f1672b1307bf7aa32687107 (patch)
tree527bf42a62f83c296fdbf36a13ea874ce6ff9f63 /src/content
parent745322c71c2443a631533ad7ef651ea30ad87a7c (diff)
infra, content: use watchPath variable where appropriate
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js
index 57025a5d..65241faa 100644
--- a/src/content/dependencies/index.js
+++ b/src/content/dependencies/index.js
@@ -77,12 +77,12 @@ export function watchContentDependencies({
   // prematurely find out there aren't any nulls - before the nulls have
   // been entered at all!).
 
-  readdir(metaDirname).then(files => {
+  readdir(watchPath).then(files => {
     if (closed) {
       return;
     }
 
-    const filePaths = files.map(file => path.join(metaDirname, file));
+    const filePaths = files.map(file => path.join(watchPath, file));
     for (const filePath of filePaths) {
       if (filePath === metaPath) continue;
       const functionName = getFunctionName(filePath);
@@ -91,7 +91,7 @@ export function watchContentDependencies({
       }
     }
 
-    const watcher = chokidar.watch(metaDirname);
+    const watcher = chokidar.watch(watchPath);
 
     watcher.on('all', (event, filePath) => {
       if (!['add', 'change'].includes(event)) return;