@gkiely/safe-install 0.1.8 → 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 +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -129,8 +129,12 @@ export function parseCommand(args) {
129
129
  args[0] === "review-deps") {
130
130
  return { kind: "review-deps" };
131
131
  }
132
- if (args[0] === "--" && args[1] === "update") {
133
- 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
+ };
134
138
  }
135
139
  return { kind: "install", args: args.filter((arg) => arg !== "--") };
136
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkiely/safe-install",
3
- "version": "0.1.8",
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",