We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850f88f commit e124454Copy full SHA for e124454
src/cli.js
@@ -55,7 +55,8 @@ async function initConfig(env) {
55
}
56
57
const defaultEnv = 'development'
58
- let config = await import(env.configPath)
+ const rawConfig = await import(env.configPath)
59
+ let config = rawConfig.default || rawConfig
60
let environment = commander.env || process.env.NODE_ENV
61
62
if (!environment && typeof config[defaultEnv] === 'object') {
@@ -160,7 +161,7 @@ function invoke(env) {
160
161
.action(async () => {
162
const config = await initConfig(env)
163
return checkStructure(config)
- .then(upToDate => {
164
+ .then((upToDate) => {
165
if (upToDate) {
166
console.log(chalk.green('Structure is up to date.'))
167
} else {
0 commit comments