edgeone 1.0.20 → 1.0.21

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.
@@ -142949,7 +142949,7 @@ var yargs_default = Yargs;
142949
142949
  // package.json
142950
142950
  var package_default = {
142951
142951
  name: "edgeone",
142952
- version: "1.0.20",
142952
+ version: "1.0.21",
142953
142953
  description: "Command-line interface for TencentCloud Pages Functions",
142954
142954
  bin: {
142955
142955
  edgeone: "./edgeone-bin/edgeone.js"
@@ -154273,7 +154273,7 @@ var PagesHandler = async (yargs) => {
154273
154273
  PagesLink
154274
154274
  ).command(
154275
154275
  "deploy <directoryOrZip>",
154276
- "Deploy folder or ZIP package to EdgeOne Pages",
154276
+ "Deploy folder or ZIP package to EdgeOne Pages. Usage: edgeone pages deploy <directoryOrZip> -n <projectName> [-t <token>]",
154277
154277
  (yargs2) => {
154278
154278
  return yargs2.positional("directoryOrZip", {
154279
154279
  type: "string",
@@ -154308,17 +154308,10 @@ function pagesCommand(edgeone) {
154308
154308
  return PagesHandler(yargs);
154309
154309
  },
154310
154310
  (yargs) => {
154311
- console.log("DEBUG - command:", yargs.command);
154312
- console.log("DEBUG - _:", yargs._);
154313
- console.log("DEBUG - _.length:", yargs._.length);
154314
- const { command: command2, _ } = yargs;
154311
+ const { command: command2 } = yargs;
154315
154312
  if (!["init", "dev", "build", "ci", "env", "deploy", "help"].includes(
154316
154313
  command2
154317
154314
  )) {
154318
- errorLog(`Pages Command not found.`);
154319
- reportError("Pages Command not found.", {
154320
- message: "Pages Command not found:" + command2
154321
- });
154322
154315
  edgeone.showHelp();
154323
154316
  }
154324
154317
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeone",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Command-line interface for TencentCloud Pages Functions",
5
5
  "bin": {
6
6
  "edgeone": "./edgeone-bin/edgeone.js"