edgeone 1.0.25 → 1.0.27
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 +9 -2
- 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.27",
|
|
142953
142953
|
description: "Command-line interface for TencentCloud Pages Functions",
|
|
142954
142954
|
bin: {
|
|
142955
142955
|
edgeone: "./edgeone-bin/edgeone.js"
|
|
@@ -153111,10 +153111,14 @@ async function remoteDevServer(jscontent, projectId, metaJSON) {
|
|
|
153111
153111
|
ProjectId: projectId,
|
|
153112
153112
|
MetaData: metaJSON
|
|
153113
153113
|
});
|
|
153114
|
-
if (!res) {
|
|
153114
|
+
if (!res || !res.WsLogUrl || !res.DebugUrl || !res.SessionId) {
|
|
153115
153115
|
errorLog("remote dev server start failed:" + JSON.stringify(res));
|
|
153116
153116
|
throw new Error("Start remote dev server failed.");
|
|
153117
153117
|
}
|
|
153118
|
+
if (res == null ? void 0 : res.Error) {
|
|
153119
|
+
errorLog("remote dev server start failed:" + res.Error.Message);
|
|
153120
|
+
throw new Error("Start remote dev server failed.");
|
|
153121
|
+
}
|
|
153118
153122
|
return res;
|
|
153119
153123
|
}
|
|
153120
153124
|
function getAllFilesInDir(dirPath) {
|
|
@@ -153383,6 +153387,9 @@ async function PagesDev(yargs) {
|
|
|
153383
153387
|
if (yargs.fePort) {
|
|
153384
153388
|
devConfig.fePort = yargs.fePort;
|
|
153385
153389
|
}
|
|
153390
|
+
if (yargs.port) {
|
|
153391
|
+
devConfig.port = yargs.port;
|
|
153392
|
+
}
|
|
153386
153393
|
return await PagesDevServer(devConfig).then(() => {
|
|
153387
153394
|
setTimeout(
|
|
153388
153395
|
() => {
|