edgeone 1.0.12 → 1.0.13

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.
@@ -102539,7 +102539,7 @@ var yargs_default = Yargs;
102539
102539
  // package.json
102540
102540
  var package_default = {
102541
102541
  name: "edgeone",
102542
- version: "1.0.12",
102542
+ version: "1.0.13",
102543
102543
  description: "Command-line interface for TencentCloud Pages Functions",
102544
102544
  bin: {
102545
102545
  edgeone: "./edgeone-bin/edgeone.js"
@@ -113492,7 +113492,13 @@ async function PagesCI(_) {
113492
113492
  // src/pages/common/env.tsx
113493
113493
  var pullEnvVars = async (projectId) => {
113494
113494
  const envDestination = getCwdFullPath("./.env");
113495
- const localEnv = readEnvFileSync(envDestination);
113495
+ let localEnv = {};
113496
+ try {
113497
+ localEnv = readEnvFileSync(envDestination);
113498
+ } catch (error3) {
113499
+ writeFileSync(envDestination, "");
113500
+ normalLog("Created new .env file");
113501
+ }
113496
113502
  const localEnvVars = [];
113497
113503
  Object.keys(localEnv).forEach((key2) => {
113498
113504
  if (key2.endsWith("DEV")) {
@@ -114177,8 +114183,7 @@ async function handleLog(url2) {
114177
114183
  okLog("Function log connected.");
114178
114184
  });
114179
114185
  ws.on("close", function close() {
114180
- normalLog("Function log server disconnected, exiting...Please restart the dev server.");
114181
- process.exit(0);
114186
+ normalLog("Function log server disconnected");
114182
114187
  });
114183
114188
  ws.on("message", function message(data) {
114184
114189
  const { logs, event_info, exceptions } = JSON.parse(data.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeone",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Command-line interface for TencentCloud Pages Functions",
5
5
  "bin": {
6
6
  "edgeone": "./edgeone-bin/edgeone.js"