Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
fix(cli): bundled configs should be loaded by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed May 12, 2020
1 parent d737f4f commit bb96583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-var-requires */

if (!process.env.NODE_CONFIG_DIR) {
const path = require('path')
process.env.NODE_CONFIG_DIR = path.join(__dirname, '../config/')
}

require('@oclif/command').run()
.then(require('@oclif/command/flush'))
.catch(require('@oclif/errors/handle'))

0 comments on commit bb96583

Please sign in to comment.