Skip to content

Commit

Permalink
fix: return promise from cli:sense api
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Wizard committed Sep 19, 2022
1 parent 50254fa commit 1e735ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/sense/lib/api-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports = (argv) => {
// not runnning via command line, run the config to inject default values
const defaultBuildConfig = initConfig(yargs([])).argv;
const senseConfig = extend(true, {}, defaultBuildConfig, argv);
sense(senseConfig);
return sense(senseConfig);
};
5 changes: 2 additions & 3 deletions commands/sense/lib/sense.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ const build = require('./build');

function sense(argv) {
if (argv.legacy) {
buildLegacy(argv);
} else {
build(argv);
return buildLegacy(argv);
}
return build(argv);
}
module.exports = sense;

0 comments on commit 1e735ae

Please sign in to comment.