@zuplo/cli 1.83.0 → 1.84.0

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.
@@ -1,8 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="972fe043-9ee3-54a1-b4ff-beecb5715708")}catch(e){}}();
3
- import * as dotenv from "dotenv";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="693e8a63-74e3-5e0f-8ccd-e696344947e7")}catch(e){}}();
4
3
  import { cpSync, existsSync } from "node:fs";
5
- import { readFile } from "node:fs/promises";
6
4
  import { join, relative, resolve } from "node:path";
7
5
  import { fileURLToPath, pathToFileURL } from "node:url";
8
6
  import { locateDenoExecutable } from "../common/deno-utils/locator.js";
@@ -20,14 +18,12 @@ export async function dev(argv) {
20
18
  process.env.GLOBAL_MODULE_LOCATION = fileURLToPath(new URL("../../node_modules", import.meta.url));
21
19
  process.env.DENO_EXECUTABLE = await locateDenoExecutable();
22
20
  const loadedEnvFiles = [];
23
- const envResult = dotenv.config();
24
- if (envResult.error === undefined) {
21
+ const envFile = join(sourceDirectory, ".env");
22
+ if (existsSync(envFile)) {
25
23
  loadedEnvFiles.push(".env");
26
24
  }
27
- const envFile = join(sourceDirectory, ".env.zuplo");
28
- if (existsSync(envFile)) {
29
- const config = dotenv.parse(await readFile(envFile, "utf-8"));
30
- dotenv.populate(process.env, config);
25
+ const envZuploFile = join(sourceDirectory, ".env.zuplo");
26
+ if (existsSync(envZuploFile)) {
31
27
  loadedEnvFiles.push(".env.zuplo");
32
28
  }
33
29
  const config = {
@@ -52,7 +48,7 @@ export async function dev(argv) {
52
48
  port: argv.editorPort,
53
49
  isStandalone: false,
54
50
  });
55
- editor.start().catch(logger.error);
51
+ editor.start().catch((err) => logger.error(err));
56
52
  }
57
53
  printDiagnosticsToConsole("Started local development setup");
58
54
  printDiagnosticsToConsole("Ctrl+C to exit");
@@ -81,4 +77,4 @@ export async function dev(argv) {
81
77
  });
82
78
  }
83
79
  //# sourceMappingURL=handler.js.map
84
- //# debugId=972fe043-9ee3-54a1-b4ff-beecb5715708
80
+ //# debugId=693e8a63-74e3-5e0f-8ccd-e696344947e7
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9e645dee-f3c2-5cd2-9f0d-99bc6c6e20dd")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fc77d1b3-caea-5c0e-8d5d-3a380bd43f60")}catch(e){}}();
3
3
  import { logger } from "../common/logger.js";
4
4
  import { ApiServer } from "./server/server.js";
5
5
  export async function editor(argv) {
@@ -9,7 +9,7 @@ export async function editor(argv) {
9
9
  port: argv.port,
10
10
  isStandalone: true,
11
11
  });
12
- server.start().catch(logger.error);
12
+ server.start().catch((err) => logger.error(err));
13
13
  return new Promise((resolve) => {
14
14
  process.on("SIGTERM", async () => {
15
15
  await server.close();
@@ -22,4 +22,4 @@ export async function editor(argv) {
22
22
  });
23
23
  }
24
24
  //# sourceMappingURL=handler.js.map
25
- //# debugId=9e645dee-f3c2-5cd2-9f0d-99bc6c6e20dd
25
+ //# debugId=fc77d1b3-caea-5c0e-8d5d-3a380bd43f60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.83.0",
3
+ "version": "1.84.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "description": "The command-line interface for Zuplo",
@@ -58,9 +58,9 @@
58
58
  "@inquirer/prompts": "^3.0.4",
59
59
  "@sentry/node": "7.69.0",
60
60
  "@swc/core": "1.3.78",
61
- "@zuplo/core": "5.1333.0",
61
+ "@zuplo/core": "5.1340.0",
62
62
  "@zuplo/pino-pretty-configurations": "^1.5.0",
63
- "@zuplo/runtime": "5.1333.0",
63
+ "@zuplo/runtime": "5.1340.0",
64
64
  "chalk": "^5.1.2",
65
65
  "chokidar": "^3.5.3",
66
66
  "deno-bin": "1.31.1",