@zuplo/cli 1.80.0 → 1.82.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.
Files changed (85) hide show
  1. package/dist/cli.js +23 -21
  2. package/dist/cmds/convert.js +2 -2
  3. package/dist/cmds/delete.js +2 -2
  4. package/dist/cmds/deploy.js +2 -2
  5. package/dist/cmds/dev.js +2 -2
  6. package/dist/cmds/editor.js +2 -2
  7. package/dist/cmds/link.js +2 -2
  8. package/dist/cmds/list.js +2 -2
  9. package/dist/cmds/login.js +2 -2
  10. package/dist/cmds/project/index.js +2 -2
  11. package/dist/cmds/project/update.js +2 -2
  12. package/dist/cmds/test.js +2 -2
  13. package/dist/cmds/tunnel/create.js +2 -2
  14. package/dist/cmds/tunnel/delete.js +2 -2
  15. package/dist/cmds/tunnel/describe.js +2 -2
  16. package/dist/cmds/tunnel/index.js +2 -2
  17. package/dist/cmds/tunnel/list.js +2 -2
  18. package/dist/cmds/tunnel/rotate-token.js +2 -2
  19. package/dist/cmds/tunnel/services/describe.js +2 -2
  20. package/dist/cmds/tunnel/services/index.js +2 -2
  21. package/dist/cmds/tunnel/services/update.js +2 -2
  22. package/dist/cmds/variable/create.js +2 -2
  23. package/dist/cmds/variable/index.js +2 -2
  24. package/dist/cmds/variable/update.js +2 -2
  25. package/dist/common/alias.js +2 -2
  26. package/dist/common/analytics/lib.js +2 -2
  27. package/dist/common/api/lib.js +2 -2
  28. package/dist/common/constants.js +2 -2
  29. package/dist/common/deno-utils/locator.js +2 -2
  30. package/dist/common/handler.js +2 -2
  31. package/dist/common/logger.js +2 -2
  32. package/dist/common/machine-id/lib.js +2 -2
  33. package/dist/common/middleware/user-configuration.js +2 -2
  34. package/dist/common/middleware/user-identification.js +2 -2
  35. package/dist/common/models.js +2 -2
  36. package/dist/common/output.js +2 -2
  37. package/dist/common/settings.js +2 -2
  38. package/dist/common/upgraders/lib.js +2 -2
  39. package/dist/common/upgraders/package-json-upgrader.js +2 -2
  40. package/dist/common/upgraders/vscode-settings-json-upgrader.js +2 -2
  41. package/dist/common/validators/file-system-validator.js +2 -2
  42. package/dist/common/validators/lib.js +2 -2
  43. package/dist/common/validators/login-state-validator.js +2 -2
  44. package/dist/common/validators/project-name-validator.js +2 -2
  45. package/dist/common/xdg/lib.js +2 -2
  46. package/dist/convert/engine.js +2 -2
  47. package/dist/convert/handler.js +2 -2
  48. package/dist/convert/routes.generated.js +2 -2
  49. package/dist/delete/handler.js +2 -2
  50. package/dist/delete/poll-deployment.js +2 -2
  51. package/dist/deploy/archive.js +2 -2
  52. package/dist/deploy/file-upload.js +2 -2
  53. package/dist/deploy/handler.js +2 -2
  54. package/dist/deploy/poll-deployment.js +2 -2
  55. package/dist/dev/handler.js +22 -3
  56. package/dist/editor/assets/index-03352ce7.js +42 -42
  57. package/dist/editor/handler.js +2 -2
  58. package/dist/editor/index.html +8 -4
  59. package/dist/editor/server/cors-plugin.js +2 -2
  60. package/dist/editor/server/server.js +20 -7
  61. package/dist/editor/server/xfs.js +2 -2
  62. package/dist/link/handler.js +2 -2
  63. package/dist/link/populate.js +2 -2
  64. package/dist/list/handler.js +2 -2
  65. package/dist/login/handler.js +2 -2
  66. package/dist/login/server.js +2 -2
  67. package/dist/project/update/handler.js +2 -2
  68. package/dist/test/esbuild-config.js +2 -2
  69. package/dist/test/esbuild-plugins/deno-test-prep-plugin.js +2 -2
  70. package/dist/test/handler.js +2 -2
  71. package/dist/test/invoke-test.js +2 -2
  72. package/dist/tunnel/create/handler.js +2 -2
  73. package/dist/tunnel/delete/handler.js +2 -2
  74. package/dist/tunnel/delete/poll-teardown-operation.js +2 -2
  75. package/dist/tunnel/describe/handler.js +2 -2
  76. package/dist/tunnel/list/handler.js +2 -2
  77. package/dist/tunnel/models.js +2 -2
  78. package/dist/tunnel/rotate-token/handler.js +2 -2
  79. package/dist/tunnel/services/describe/handler.js +2 -2
  80. package/dist/tunnel/services/update/handler.js +2 -2
  81. package/dist/tunnel/services/update/poll-provisioning-operations.js +2 -2
  82. package/dist/variable/create/handler.js +2 -2
  83. package/dist/variable/models.js +2 -2
  84. package/dist/variable/update/handler.js +2 -2
  85. package/package.json +4 -4
@@ -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]="1cd4863b-e160-5034-be8d-a7c8eb8c8ae2")}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]="d154f5e9-c679-56f7-bd91-57416bf774ef")}catch(e){}}();
3
3
  import { parse } from "jsonc-parser";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile, writeFile } from "node:fs/promises";
@@ -93,4 +93,4 @@ export class VsCodeSettingsJsonUpgrader extends StandardUpgrader {
93
93
  }
94
94
  }
95
95
  //# sourceMappingURL=vscode-settings-json-upgrader.js.map
96
- //# debugId=1cd4863b-e160-5034-be8d-a7c8eb8c8ae2
96
+ //# debugId=d154f5e9-c679-56f7-bd91-57416bf774ef
@@ -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]="ea9751e2-2193-5d3e-87ee-31d1edaf2797")}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]="648539ee-2075-5ac0-b268-fc5ae066e234")}catch(e){}}();
3
3
  import fg from "fast-glob";
4
4
  import { existsSync, readdirSync } from "node:fs";
5
5
  import { join } from "node:path";
@@ -163,4 +163,4 @@ export const validDeployDirectoryValidator = new CompositeValidator(new ZuploPro
163
163
  export const validTestDirectoryValidator = new CompositeValidator(new ZuploProjectValidator(), new ZuploProjectHasTestsValidator());
164
164
  export const validLinkDirectoryValidator = new CompositeValidator(new ZuploProjectValidator(), new UserIsLoggedInValidator());
165
165
  //# sourceMappingURL=file-system-validator.js.map
166
- //# debugId=ea9751e2-2193-5d3e-87ee-31d1edaf2797
166
+ //# debugId=648539ee-2075-5ac0-b268-fc5ae066e234
@@ -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]="51b930c4-1a49-59cf-858d-ccd74935ce72")}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]="2f478e87-b9eb-58aa-a642-edebf3c67d1f")}catch(e){}}();
3
3
  export class CompositeValidator {
4
4
  validators = new Array();
5
5
  constructor(...validators) {
@@ -31,4 +31,4 @@ export class YargsChecker {
31
31
  }
32
32
  }
33
33
  //# sourceMappingURL=lib.js.map
34
- //# debugId=51b930c4-1a49-59cf-858d-ccd74935ce72
34
+ //# debugId=2f478e87-b9eb-58aa-a642-edebf3c67d1f
@@ -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]="1ef82943-79ab-58c3-85ba-7a052b51014b")}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]="b7b6a78a-851e-5dd1-9612-d6e35ceab3cb")}catch(e){}}();
3
3
  import { existsSync } from "node:fs";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { join } from "node:path";
@@ -36,4 +36,4 @@ export class UserIsLoggedInValidator {
36
36
  }
37
37
  }
38
38
  //# sourceMappingURL=login-state-validator.js.map
39
- //# debugId=1ef82943-79ab-58c3-85ba-7a052b51014b
39
+ //# debugId=b7b6a78a-851e-5dd1-9612-d6e35ceab3cb
@@ -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]="9ee5b134-48fd-5a2b-a162-b5e08f2fac22")}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]="277e3041-3783-5b05-9c9e-046eccec3cf9")}catch(e){}}();
3
3
  export class ProjectIsNotSet extends Error {
4
4
  constructor() {
5
5
  super(`Missing project name. This command requires a project to be specified. Either specify it using --project or set it in zuplo.jsonc.
@@ -30,4 +30,4 @@ export class ProjectIsSetValidator {
30
30
  }
31
31
  }
32
32
  //# sourceMappingURL=project-name-validator.js.map
33
- //# debugId=9ee5b134-48fd-5a2b-a162-b5e08f2fac22
33
+ //# debugId=277e3041-3783-5b05-9c9e-046eccec3cf9
@@ -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]="07c0e893-1d9c-5043-8872-af7d12092a4e")}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]="b489b940-9f72-5e46-bb6b-f86931bf9503")}catch(e){}}();
3
3
  import { homedir } from "node:os";
4
4
  import path from "node:path";
5
5
  import { ZUPLO_CLI_XDG_FOLDER_NAME } from "../constants.js";
@@ -18,4 +18,4 @@ export const ZUPLO_XDG_CONFIG_HOME = path.join(XDG_CONFIG_HOME, ZUPLO_CLI_XDG_FO
18
18
  export const ZUPLO_XDG_DATA_HOME = path.join(XDG_DATA_HOME, ZUPLO_CLI_XDG_FOLDER_NAME);
19
19
  export const ZUPLO_XDG_STATE_HOME = path.join(XDG_STATE_HOME, ZUPLO_CLI_XDG_FOLDER_NAME);
20
20
  //# sourceMappingURL=lib.js.map
21
- //# debugId=07c0e893-1d9c-5043-8872-af7d12092a4e
21
+ //# debugId=b489b940-9f72-5e46-bb6b-f86931bf9503
@@ -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]="23fb1ec0-0928-5d06-9636-644e8145f6a9")}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]="d65a6f87-4437-515b-b099-6e6be3b46f6e")}catch(e){}}();
3
3
  import { join } from "node:path";
4
4
  export function convertRoutes(routesConfig) {
5
5
  const base = generateBaseOpenAPIConfig();
@@ -73,4 +73,4 @@ function fullPath(path, context) {
73
73
  return join(versionPrefix, path.path);
74
74
  }
75
75
  //# sourceMappingURL=engine.js.map
76
- //# debugId=23fb1ec0-0928-5d06-9636-644e8145f6a9
76
+ //# debugId=d65a6f87-4437-515b-b099-6e6be3b46f6e
@@ -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]="db6c1425-6761-5670-845d-9666688009f3")}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]="98ec46cb-efc5-52e5-8f3c-7c9a206b4cf6")}catch(e){}}();
3
3
  import { writeFileSync } from "node:fs";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { join, relative } from "node:path";
@@ -36,4 +36,4 @@ export async function convert(argv) {
36
36
  }
37
37
  }
38
38
  //# sourceMappingURL=handler.js.map
39
- //# debugId=db6c1425-6761-5670-845d-9666688009f3
39
+ //# debugId=98ec46cb-efc5-52e5-8f3c-7c9a206b4cf6
@@ -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]="35e679d7-a1d9-5f0c-a4f2-4c90d01b90f4")}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]="08f01bb2-9972-5856-87c5-86eced9af7f2")}catch(e){}}();
3
3
  export {};
4
4
  //# sourceMappingURL=routes.generated.js.map
5
- //# debugId=35e679d7-a1d9-5f0c-a4f2-4c90d01b90f4
5
+ //# debugId=08f01bb2-9972-5856-87c5-86eced9af7f2
@@ -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]="7ae3068d-6542-5bf3-8958-ead0b73483aa")}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]="c0e12a81-6398-5654-b44c-994a9ced2056")}catch(e){}}();
3
3
  import { logger } from "../common/logger.js";
4
4
  import { printCriticalFailureToConsoleAndExit, printResultToConsoleAndExitGracefully, } from "../common/output.js";
5
5
  import settings from "../common/settings.js";
@@ -61,4 +61,4 @@ export async function deleteZup(argv) {
61
61
  }
62
62
  }
63
63
  //# sourceMappingURL=handler.js.map
64
- //# debugId=7ae3068d-6542-5bf3-8958-ead0b73483aa
64
+ //# debugId=c0e12a81-6398-5654-b44c-994a9ced2056
@@ -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]="102b0f71-4dcb-58c1-bcbc-12e041500ae2")}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]="a698b41b-5ddc-5fef-ba13-85d60383e927")}catch(e){}}();
3
3
  import { printDiagnosticsToConsole } from "../common/output.js";
4
4
  import settings from "../common/settings.js";
5
5
  function wait(duration = settings.POLL_INTERVAL) {
@@ -20,4 +20,4 @@ export async function pingDeployment(argv) {
20
20
  return false;
21
21
  }
22
22
  //# sourceMappingURL=poll-deployment.js.map
23
- //# debugId=102b0f71-4dcb-58c1-bcbc-12e041500ae2
23
+ //# debugId=a698b41b-5ddc-5fef-ba13-85d60383e927
@@ -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]="401ea435-fc40-5640-97e4-e6aa5cc1f299")}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]="f72f9cae-79e9-568c-8463-bf22056cdd05")}catch(e){}}();
3
3
  import ignore from "ignore";
4
4
  import minimatch from "minimatch";
5
5
  import { existsSync, mkdirSync, readFileSync, writeFileSync, } from "node:fs";
@@ -102,4 +102,4 @@ async function writeGeneratedMetadata(dir, metadata) {
102
102
  });
103
103
  }
104
104
  //# sourceMappingURL=archive.js.map
105
- //# debugId=401ea435-fc40-5640-97e4-e6aa5cc1f299
105
+ //# debugId=f72f9cae-79e9-568c-8463-bf22056cdd05
@@ -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]="d63a44e0-41f1-5993-a4ea-ca09e5369aeb")}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]="276fdbdc-f00d-56c1-9119-77780a0328cc")}catch(e){}}();
3
3
  import { readFileSync, statSync } from "node:fs";
4
4
  export async function upload(tarballPath, url) {
5
5
  const stats = statSync(tarballPath);
@@ -14,4 +14,4 @@ export async function upload(tarballPath, url) {
14
14
  });
15
15
  }
16
16
  //# sourceMappingURL=file-upload.js.map
17
- //# debugId=d63a44e0-41f1-5993-a4ea-ca09e5369aeb
17
+ //# debugId=276fdbdc-f00d-56c1-9119-77780a0328cc
@@ -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]="688ea3e1-aa7a-58dd-8251-a8a0f7cb46d4")}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]="a8d73cfc-a631-5b55-ba40-3fec95f13f5f")}catch(e){}}();
3
3
  import { parse } from "node:path";
4
4
  import { logger } from "../common/logger.js";
5
5
  import { printCriticalFailureToConsoleAndExit, printDiagnosticsToConsole, printResultToConsoleAndExitGracefully, } from "../common/output.js";
@@ -49,4 +49,4 @@ export async function deploy(argv) {
49
49
  }
50
50
  }
51
51
  //# sourceMappingURL=handler.js.map
52
- //# debugId=688ea3e1-aa7a-58dd-8251-a8a0f7cb46d4
52
+ //# debugId=a8d73cfc-a631-5b55-ba40-3fec95f13f5f
@@ -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]="be10cb83-f95d-5db4-8bda-0d5797e852d5")}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]="d51d59c4-00c9-53e6-a25b-48339755ffa5")}catch(e){}}();
3
3
  import { logger } from "../common/logger.js";
4
4
  import { printDiagnosticsToConsole, textOrJson } from "../common/output.js";
5
5
  import settings from "../common/settings.js";
@@ -63,4 +63,4 @@ export async function pollDeployment(argv, fileId, account, project) {
63
63
  return {};
64
64
  }
65
65
  //# sourceMappingURL=poll-deployment.js.map
66
- //# debugId=be10cb83-f95d-5db4-8bda-0d5797e852d5
66
+ //# debugId=d51d59c4-00c9-53e6-a25b-48339755ffa5
@@ -1,11 +1,12 @@
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]="0da34659-f864-54aa-a7c3-eb71f09560d2")}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]="1eb67449-21d8-583a-9429-4ef33f6ecaed")}catch(e){}}();
3
3
  import * as dotenv from "dotenv";
4
4
  import { cpSync, existsSync } from "node:fs";
5
5
  import { readFile } from "node:fs/promises";
6
6
  import { join, relative, resolve } from "node:path";
7
7
  import { fileURLToPath, pathToFileURL } from "node:url";
8
8
  import { locateDenoExecutable } from "../common/deno-utils/locator.js";
9
+ import { printDiagnosticsToConsole } from "../common/output.js";
9
10
  export async function dev(argv) {
10
11
  const sourceDirectory = resolve(join(relative(process.cwd(), argv.dir)));
11
12
  const zuploRuntimePath = new URL("../../node_modules/@zuplo/runtime", import.meta.url);
@@ -16,10 +17,16 @@ export async function dev(argv) {
16
17
  }
17
18
  process.env.GLOBAL_MODULE_LOCATION = fileURLToPath(new URL("../../node_modules", import.meta.url));
18
19
  process.env.DENO_EXECUTABLE = await locateDenoExecutable();
20
+ const loadedEnvFiles = [];
21
+ const envResult = dotenv.config();
22
+ if (envResult.error === undefined) {
23
+ loadedEnvFiles.push(".env");
24
+ }
19
25
  const envFile = join(sourceDirectory, ".env.zuplo");
20
26
  if (existsSync(envFile)) {
21
27
  const config = dotenv.parse(await readFile(envFile, "utf-8"));
22
28
  dotenv.populate(process.env, config);
29
+ loadedEnvFiles.push(".env.zuplo");
23
30
  }
24
31
  const config = {
25
32
  build_assets_url: pathToFileURL(sourceDirectory),
@@ -36,9 +43,21 @@ export async function dev(argv) {
36
43
  disableIntegratedDevPortalBuild: false,
37
44
  },
38
45
  });
46
+ printDiagnosticsToConsole("Started local development setup");
47
+ printDiagnosticsToConsole("Ctrl+C to exit");
48
+ printDiagnosticsToConsole("");
49
+ printDiagnosticsToConsole(`🚀 Zuplo Gateway: http://localhost:${port}`);
50
+ if (loadedEnvFiles.length > 0) {
51
+ printDiagnosticsToConsole(`⚙️ Loaded env files: \n - ${loadedEnvFiles.join(" \n - ")}`);
52
+ }
53
+ printDiagnosticsToConsole("");
54
+ printDiagnosticsToConsole("");
39
55
  return new Promise((resolve) => {
40
- serverProcess.on("exit", resolve);
56
+ serverProcess.on("exit", () => {
57
+ printDiagnosticsToConsole("Closing local development setup");
58
+ resolve(void 0);
59
+ });
41
60
  });
42
61
  }
43
62
  //# sourceMappingURL=handler.js.map
44
- //# debugId=0da34659-f864-54aa-a7c3-eb71f09560d2
63
+ //# debugId=1eb67449-21d8-583a-9429-4ef33f6ecaed