Skip to content

Commit

Permalink
feat(public/kpo): takes scripts to replace into account on raise
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 1, 2019
1 parent d1c7751 commit 33e0e83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/public/kpo/raise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ function raise(options: IRaiseOptions = {}): () => Promise<void> {
(key) => !selected.includes(key)
);

const toRemove = selected.filter((key) => !taskNames.includes(key));
const toAdd = taskNames.filter((key) => !selected.includes(key));
const toRemove = selected
.filter((key) => !taskNames.includes(key))
.concat(Object.keys(scripts).filter((key) => toAdd.includes(key)));

let msg = chalk.bold.green('No pending scripts changes');
if (toRemove.length || toAdd.length) {
Expand Down

0 comments on commit 33e0e83

Please sign in to comment.