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

Commit

Permalink
fix: run command when checking config
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiocro committed Jan 16, 2019
1 parent a28d9de commit 04987e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default (environment = 'develop', done, script = null) => {
const config = readConfig();
prompt.start();

if (!config.run || !config.scripts) {
throw new Error('please config `run` or `config`');
if (!config.run && !config.scripts) {
throw new Error('please config `run` or `scripts`');
}

if (script && (!config.scripts || !config.scripts[script])) {
Expand Down

0 comments on commit 04987e0

Please sign in to comment.