Skip to content

Commit

Permalink
fix watch() not passing rootFolderPath through to processScript()
Browse files Browse the repository at this point in the history
  • Loading branch information
samualtnorman committed Dec 30, 2024
1 parent 93e7bef commit 2f94c60
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,16 @@ export async function watch(sourceDirectory: string, hackmudDirectory: string, {
try {
({ script: minifiedCode, warnings } = await processScript(
await readFile(filePath, { encoding: `utf8` }),
{ minify, scriptUser: true, scriptName, uniqueId, filePath, mangleNames, forceQuineCheats }
{
minify,
scriptUser: true,
scriptName,
uniqueId,
filePath,
mangleNames,
forceQuineCheats,
rootFolderPath
}
))
} catch (error) {
assert(error instanceof Error, HERE)
Expand Down

0 comments on commit 2f94c60

Please sign in to comment.