Skip to content

Commit

Permalink
fix: update path to example config in mode=test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed Mar 6, 2023
1 parent dc22bce commit 926a2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const modeArg = process.argv.find((arg) => arg.startsWith('mode='));

// Local imports
const pkg = require('../package');
const config = require(modeArg && modeArg.endsWith('test') ? 'config.example.js' : '../config.js');
const config = require('../' + modeArg && modeArg.endsWith('test') ? 'config.example.js' : 'config.js');
const { clearApplicationCommandData, refreshSlashCommandData } = require('./handlers/commands');
const {
getFiles, titleCase, getRuntime
Expand Down

0 comments on commit 926a2a8

Please sign in to comment.