@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.
- package/dist/index.js +8 -3
- 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
|
-
|
|
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