Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dbritto-dev committed Jul 6, 2024
1 parent 1ddb44b commit f91e235
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "npm-ri",
"private": false,
"description": "npm install packages using regular expressions to update installed dependencies",
"version": "0.0.5",
"version": "0.0.6",
"author": "Danilo Britto",
"repository": {
"type": "git",
Expand Down
14 changes: 11 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,21 @@ function run(
return;
}

throw new Error("Something went wrong");
program.error("Something went wrong");
});

return;
}

throw new Error(
if (dryRun) {
console.warn(
`No packages found with the next regular expressions: ${dependencyNameRegex}`
);

return;
}

program.error(
`No packages found with the next regular expressions: ${dependencyNameRegex}`
);
}
Expand All @@ -89,7 +97,7 @@ program
.description(
"npm install using regular expressions to update installed dependencies"
)
.version("0.0.5");
.version("0.0.6");

program
.argument(
Expand Down

0 comments on commit f91e235

Please sign in to comment.