Skip to content

Commit a8dd874

Browse files
committed
Replaced userJSfiles.dev.json path w/ dynamic one to support running from any dir
1 parent 945cc5b commit a8dd874

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/bump/resources.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@
107107
// Collect userscripts
108108
log.working(`\n${ devMode ? 'Collecting' : 'Searching for' } userscripts...\n`)
109109
const userJSfiles = await (async () =>
110-
devMode ? JSON.parse(await fs.promises.readFile('./utils/bump/userJSfiles.dev.json', 'utf-8')) : findUserJS()
110+
devMode ? JSON.parse(
111+
await fs.promises.readFile(require('path').join(__dirname, 'userJSfiles.dev.json'), 'utf-8'))
112+
: findUserJS()
111113
)()
112114
log.dev(userJSfiles)
113115

0 commit comments

Comments
 (0)