@gkiely/safe-install 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -125,11 +125,16 @@ export function parseCommand(args) {
125
125
  if (args.includes("--help") || args.includes("-h")) {
126
126
  return { kind: "help" };
127
127
  }
128
- if (args[0] === "--" && args[1] === "review-deps") {
128
+ if ((args[0] === "--" && args[1] === "review-deps") ||
129
+ args[0] === "review-deps") {
129
130
  return { kind: "review-deps" };
130
131
  }
131
- if (args[0] === "--" && args[1] === "update") {
132
- return { kind: "update", args: args.slice(2) };
132
+ if ((args[0] === "--" && args[1] === "update") ||
133
+ args[0] === "update") {
134
+ return {
135
+ kind: "update",
136
+ args: args[0] === "--" ? args.slice(2) : args.slice(1),
137
+ };
133
138
  }
134
139
  return { kind: "install", args: args.filter((arg) => arg !== "--") };
135
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkiely/safe-install",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Run npm installs with lifecycle scripts disabled, then rebuild explicitly trusted dependencies.",
5
5
  "author": "Grant Kiely <grant@youneedawiki.com>",
6
6
  "license": "MIT",