edgeone 1.0.20 → 1.0.22
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/edgeone-dist/cli.js +6 -12
- package/package.json +1 -1
package/edgeone-dist/cli.js
CHANGED
|
@@ -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.
|
|
142952
|
+
version: "1.0.22",
|
|
142953
142953
|
description: "Command-line interface for TencentCloud Pages Functions",
|
|
142954
142954
|
bin: {
|
|
142955
142955
|
edgeone: "./edgeone-bin/edgeone.js"
|
|
@@ -153709,11 +153709,12 @@ var createPagesDeployment = async (opts) => {
|
|
|
153709
153709
|
Env: env3,
|
|
153710
153710
|
DistType: isZip ? "Zip" : "Folder",
|
|
153711
153711
|
TempBucketPath: targetPath
|
|
153712
|
-
}
|
|
153712
|
+
},
|
|
153713
|
+
throwOnError: false
|
|
153713
153714
|
});
|
|
153714
153715
|
if ((_b2 = (_a3 = data == null ? void 0 : data.Data) == null ? void 0 : _a3.Response) == null ? void 0 : _b2.Error) {
|
|
153715
153716
|
throw new Error(
|
|
153716
|
-
`[createPagesDeployment] Deployment creation failed:
|
|
153717
|
+
`[createPagesDeployment] Deployment creation failed: This project type does not support direct folder or zip file deployment`
|
|
153717
153718
|
);
|
|
153718
153719
|
}
|
|
153719
153720
|
return data;
|
|
@@ -154273,7 +154274,7 @@ var PagesHandler = async (yargs) => {
|
|
|
154273
154274
|
PagesLink
|
|
154274
154275
|
).command(
|
|
154275
154276
|
"deploy <directoryOrZip>",
|
|
154276
|
-
"Deploy folder or ZIP package to EdgeOne Pages",
|
|
154277
|
+
"Deploy folder or ZIP package to EdgeOne Pages. Usage: edgeone pages deploy <directoryOrZip> -n <projectName> [-t <token>]",
|
|
154277
154278
|
(yargs2) => {
|
|
154278
154279
|
return yargs2.positional("directoryOrZip", {
|
|
154279
154280
|
type: "string",
|
|
@@ -154308,17 +154309,10 @@ function pagesCommand(edgeone) {
|
|
|
154308
154309
|
return PagesHandler(yargs);
|
|
154309
154310
|
},
|
|
154310
154311
|
(yargs) => {
|
|
154311
|
-
|
|
154312
|
-
console.log("DEBUG - _:", yargs._);
|
|
154313
|
-
console.log("DEBUG - _.length:", yargs._.length);
|
|
154314
|
-
const { command: command2, _ } = yargs;
|
|
154312
|
+
const { command: command2 } = yargs;
|
|
154315
154313
|
if (!["init", "dev", "build", "ci", "env", "deploy", "help"].includes(
|
|
154316
154314
|
command2
|
|
154317
154315
|
)) {
|
|
154318
|
-
errorLog(`Pages Command not found.`);
|
|
154319
|
-
reportError("Pages Command not found.", {
|
|
154320
|
-
message: "Pages Command not found:" + command2
|
|
154321
|
-
});
|
|
154322
154316
|
edgeone.showHelp();
|
|
154323
154317
|
}
|
|
154324
154318
|
}
|