Skip to content

Commit

Permalink
fix: use dotRelative glob option
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau authored Mar 7, 2023
1 parent 7f2b20b commit b48e4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const scriptsToLoad = process.env.SCRIPTS || './scripts/**/*.js'
const { app, events } = require('./app')

// load all the files in the scripts folder
globSync(scriptsToLoad).forEach((file) => {
globSync(scriptsToLoad, { dotRelative: true }).forEach((file) => {
logger.info('Loading:', file)
require(file)(app, events)
})
Expand Down

0 comments on commit b48e4c0

Please sign in to comment.