@zuplo/cli 1.134.0 → 1.136.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.
package/dist/compile/handler.js
CHANGED
|
@@ -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]="
|
|
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]="5c4fd488-f729-519e-94c7-406abc7a3013")}catch(e){}}();
|
|
3
3
|
import dotenv from "dotenv";
|
|
4
4
|
import { cpSync, existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { join, relative, resolve } from "node:path";
|
|
@@ -27,7 +27,7 @@ export async function compile(argv) {
|
|
|
27
27
|
process.env.__ZUPLO_CONFIG = btoa(JSON.stringify(config));
|
|
28
28
|
const core = await import("@zuplo/core");
|
|
29
29
|
const zupPort = argv.port;
|
|
30
|
-
await core.
|
|
30
|
+
await core.compileWorkerdServer({
|
|
31
31
|
sourceDirectory,
|
|
32
32
|
port: zupPort,
|
|
33
33
|
binaryName: argv["binary-name"],
|
|
@@ -44,4 +44,4 @@ export async function compile(argv) {
|
|
|
44
44
|
printDiagnosticsToConsole(`The binary is available at ${sourceDirectory}/dist/${argv["binary-name"]}`);
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=handler.js.map
|
|
47
|
-
//# debugId=
|
|
47
|
+
//# debugId=5c4fd488-f729-519e-94c7-406abc7a3013
|
package/dist/deploy/handler.js
CHANGED
|
@@ -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]="
|
|
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]="fe162c2d-58d1-5c9a-908d-f03546eabbc5")}catch(e){}}();
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { parse } from "node:path";
|
|
5
5
|
import { MAX_PRETTY_BRANCH_NAME as MAX_PRETTY_BRANCH_LENGTH } from "../common/constants.js";
|
|
@@ -66,7 +66,7 @@ async function deployToSaas(argv) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
async function deployToSelfHosted(argv) {
|
|
69
|
-
|
|
69
|
+
const endpoint = normalizeUrl(argv["self-hosted-endpoint"]);
|
|
70
70
|
const archiveMetadata = await archive(argv);
|
|
71
71
|
logger.debug(`Tarball created locally at ${archiveMetadata}`);
|
|
72
72
|
const { project } = argv;
|
|
@@ -102,7 +102,7 @@ async function deployToSelfHosted(argv) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
|
-
logger.error(
|
|
105
|
+
logger.error(await uploadUrlResponse.text(), "Failed to upload to self-hosted build endpoint");
|
|
106
106
|
await printCriticalFailureToConsoleAndExit("Error: Failed to upload to self-hosted build endpoint");
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -117,4 +117,4 @@ export const getPrettyBranch = (branch) => {
|
|
|
117
117
|
.substring(0, MAX_PRETTY_BRANCH_LENGTH));
|
|
118
118
|
};
|
|
119
119
|
//# sourceMappingURL=handler.js.map
|
|
120
|
-
//# debugId=
|
|
120
|
+
//# debugId=fe162c2d-58d1-5c9a-908d-f03546eabbc5
|
package/dist/dev/handler.js
CHANGED
|
@@ -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]="
|
|
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]="578699eb-40b5-5250-9349-02c17f8b59b6")}catch(e){}}();
|
|
3
3
|
import dotenv from "dotenv";
|
|
4
4
|
import { cpSync, existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { join, relative, resolve } from "node:path";
|
|
@@ -41,19 +41,19 @@ export async function dev(argv) {
|
|
|
41
41
|
const zupDebugPort = argv.debugPort;
|
|
42
42
|
const isZupPortAvailable = await isPortAvailable("localhost", zupPort);
|
|
43
43
|
if (!isZupPortAvailable) {
|
|
44
|
-
printCriticalFailureToConsoleAndExit(`Port ${zupPort} is already in use. Please specify a different port using --port.`);
|
|
44
|
+
await printCriticalFailureToConsoleAndExit(`Port ${zupPort} is already in use. Please specify a different port using --port.`);
|
|
45
45
|
}
|
|
46
46
|
const isZupEditorPortAvailable = await isPortAvailable("localhost", zupEditorPort);
|
|
47
47
|
if (!isZupEditorPortAvailable) {
|
|
48
|
-
printCriticalFailureToConsoleAndExit(`Port ${zupEditorPort} is already in use. Please specify a different port using --editor-port.`);
|
|
48
|
+
await printCriticalFailureToConsoleAndExit(`Port ${zupEditorPort} is already in use. Please specify a different port using --editor-port.`);
|
|
49
49
|
}
|
|
50
50
|
if (zupDebugPort) {
|
|
51
51
|
const isZupDebugPortAvailable = await isPortAvailable("localhost", zupDebugPort);
|
|
52
52
|
if (!isZupDebugPortAvailable) {
|
|
53
|
-
printCriticalFailureToConsoleAndExit(`Port ${zupDebugPort} is already in use. Please specify a different port using --debug-port.`);
|
|
53
|
+
await printCriticalFailureToConsoleAndExit(`Port ${zupDebugPort} is already in use. Please specify a different port using --debug-port.`);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
await core.
|
|
56
|
+
await core.startDevServer({
|
|
57
57
|
sourceDirectory,
|
|
58
58
|
port: zupPort,
|
|
59
59
|
debugPort: argv.debugPort ?? undefined,
|
|
@@ -102,4 +102,4 @@ export async function dev(argv) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
//# sourceMappingURL=handler.js.map
|
|
105
|
-
//# debugId=
|
|
105
|
+
//# debugId=578699eb-40b5-5250-9349-02c17f8b59b6
|