htmlhost-cli 2.7.0 → 2.7.1
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/package.json +1 -1
- package/src/cli.mjs +5 -2
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { bold, dim, cyan, err } from "./ui.mjs";
|
|
|
5
5
|
import { ApiError } from "./api.mjs";
|
|
6
6
|
import { startUpdateCheck, applyUpdate } from "./update.mjs";
|
|
7
7
|
|
|
8
|
-
const VERSION = "2.7.
|
|
8
|
+
const VERSION = "2.7.1";
|
|
9
9
|
|
|
10
10
|
const HELP = `
|
|
11
11
|
${bold("htmlhost")} ${dim(`v${VERSION}`)} — deploy HTML from the terminal
|
|
@@ -91,7 +91,10 @@ export async function run(argv) {
|
|
|
91
91
|
args.push(...filtered);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
// `htmlhost <command> --help` must never run the command — for deploy that
|
|
95
|
+
// would scan the folder and prompt to overwrite the linked site.
|
|
96
|
+
if (!command || command === "help" || command === "--help" || command === "-h" ||
|
|
97
|
+
args.includes("--help") || args.includes("-h")) {
|
|
95
98
|
console.log(HELP);
|
|
96
99
|
return;
|
|
97
100
|
}
|