@zuplo/cli 1.120.0 → 1.122.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/cmds/dev.js +9 -3
- package/dist/link/handler.js +7 -4
- package/package.json +1 -1
package/dist/cmds/dev.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]="c8f33de8-91fb-59f6-aab3-9b275b691ae6")}catch(e){}}();
|
|
3
3
|
import { captureEvent } from "../common/analytics/lib.js";
|
|
4
4
|
import { identify } from "../common/middleware/user-identification.js";
|
|
5
5
|
import setBlocking from "../common/output.js";
|
|
@@ -43,9 +43,15 @@ export default {
|
|
|
43
43
|
});
|
|
44
44
|
},
|
|
45
45
|
handler: async (argv) => {
|
|
46
|
-
await captureEvent({
|
|
46
|
+
await captureEvent({
|
|
47
|
+
argv,
|
|
48
|
+
properties: {
|
|
49
|
+
"debug-port": argv["debugPort"],
|
|
50
|
+
},
|
|
51
|
+
event: "zup dev",
|
|
52
|
+
});
|
|
47
53
|
await dev(argv);
|
|
48
54
|
},
|
|
49
55
|
};
|
|
50
56
|
//# sourceMappingURL=dev.js.map
|
|
51
|
-
//# debugId=
|
|
57
|
+
//# debugId=c8f33de8-91fb-59f6-aab3-9b275b691ae6
|
package/dist/link/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]="ed7a03fb-41e9-565b-95ab-4e4d54930128")}catch(e){}}();
|
|
3
3
|
import { select } from "@inquirer/prompts";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -23,9 +23,12 @@ function prettyPrintEnvironmentPrompt(env) {
|
|
|
23
23
|
return `${env.name} (${environmentType}, ${branchName})`;
|
|
24
24
|
}
|
|
25
25
|
export async function link(argv) {
|
|
26
|
-
const rawAuth = await readFile(join(ZUPLO_XDG_STATE_HOME, ZUPLO_AUTH_FILE_NAME), "utf-8");
|
|
27
|
-
const authJson = JSON.parse(rawAuth);
|
|
28
26
|
let environment = argv.environment;
|
|
27
|
+
let authJson = undefined;
|
|
28
|
+
if (!environment) {
|
|
29
|
+
const rawAuth = await readFile(join(ZUPLO_XDG_STATE_HOME, ZUPLO_AUTH_FILE_NAME), "utf-8");
|
|
30
|
+
authJson = JSON.parse(rawAuth);
|
|
31
|
+
}
|
|
29
32
|
let account = argv.account;
|
|
30
33
|
if (!environment && !account) {
|
|
31
34
|
const accountResponse = await fetch(`${settings.ZUPLO_API_ENDPOINT}/v1/accounts`, {
|
|
@@ -143,4 +146,4 @@ Successfully linked your local directory to the ${project} project in the ${acco
|
|
|
143
146
|
.env.zuplo and zuplo.jsonc have been updated with the new values.`);
|
|
144
147
|
}
|
|
145
148
|
//# sourceMappingURL=handler.js.map
|
|
146
|
-
//# debugId=
|
|
149
|
+
//# debugId=ed7a03fb-41e9-565b-95ab-4e4d54930128
|