Skip to content

Commit

Permalink
Upgrade deps as of 2021-04-24 (#590)
Browse files Browse the repository at this point in the history
* Bump discord.js to 12.5.3

* Bump commander to ^7.2.0

* Bump simple-markdown to ^0.7.3

* Bump @babel dependencies to ^7.13

* Bump cross-env to ^7.0.3

(Nothing relevant; just went to maintenance-only mode)

* Bump lodash to ^4.17.21

* Bump eslint dependencies

* Bump test dependencies (chai, mocha, sinon, sinon-chai)

* Replace babel-eslint with @babel/eslint-parser

* Bump sub-dependencies
  • Loading branch information
Throne3d authored Apr 24, 2021
1 parent e21b174 commit b467e7d
Show file tree
Hide file tree
Showing 4 changed files with 2,072 additions and 4,137 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"env": {
"mocha": true,
"node": true
Expand Down
4 changes: 3 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ function run() {
)
.parse(process.argv);

const opts = program.opts();

// If no config option is given, try to use the env variable:
if (program.config) process.env.CONFIG_FILE = program.config;
if (opts.config) process.env.CONFIG_FILE = opts.config;
if (!process.env.CONFIG_FILE) throw new Error('Missing environment variable CONFIG_FILE');

const completePath = path.resolve(process.cwd(), process.env.CONFIG_FILE);
Expand Down
Loading

0 comments on commit b467e7d

Please sign in to comment.