Skip to content

Commit

Permalink
fix: env first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tbazelczuk committed Mar 4, 2022
1 parent c84dbd2 commit 5275c78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/env/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,8 @@ const args = minimist(process.argv.slice(2), {
},
});

if (args.env !== 'test' && args._.length > 1) {
args.env = args._.slice(-1)[0];
}

module.exports = args;

0 comments on commit 5275c78

Please sign in to comment.