@lumerahq/cli 0.19.24 → 0.19.25
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/{chunk-HEUXW7SQ.js → chunk-A55Q4P2T.js} +1 -11
- package/dist/{dev-AZ6APGU3.js → dev-GQKLR7AK.js} +1 -1
- package/dist/index.js +9 -9
- package/dist/{resources-33YKJE7P.js → resources-R4IYU4BF.js} +1 -1
- package/package.json +1 -1
- package/dist/{register-ZCNHHGZH.js → register-OOU477QY.js} +5 -5
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
userContextHeaders
|
|
3
|
-
validateProjectExternalId,
|
|
4
|
-
validateProjectNameLength
|
|
2
|
+
userContextHeaders
|
|
5
3
|
} from "./chunk-HTPNRY3F.js";
|
|
6
4
|
import {
|
|
7
5
|
fetchWithRetry
|
|
@@ -65,10 +63,6 @@ async function createTarball(distDir) {
|
|
|
65
63
|
});
|
|
66
64
|
}
|
|
67
65
|
async function ensureAppRecord(apiBase, token, appName, appTitle) {
|
|
68
|
-
const appIdError = validateProjectExternalId(appName);
|
|
69
|
-
if (appIdError) throw new Error(appIdError);
|
|
70
|
-
const appNameError = validateProjectNameLength(appTitle, "App name");
|
|
71
|
-
if (appNameError) throw new Error(appNameError);
|
|
72
66
|
const appData = {
|
|
73
67
|
name: appTitle,
|
|
74
68
|
hosting_type: "s3"
|
|
@@ -129,10 +123,6 @@ Deployed! ${launchUrl}`));
|
|
|
129
123
|
return { launchUrl, version };
|
|
130
124
|
}
|
|
131
125
|
async function registerDevApp(apiBase, token, appName, appTitle, appUrl) {
|
|
132
|
-
const appIdError = validateProjectExternalId(appName);
|
|
133
|
-
if (appIdError) throw new Error(appIdError);
|
|
134
|
-
const appNameError = validateProjectNameLength(appTitle, "App name");
|
|
135
|
-
if (appNameError) throw new Error(appNameError);
|
|
136
126
|
const appData = {
|
|
137
127
|
name: appTitle,
|
|
138
128
|
dev_iframe_url: appUrl
|
package/dist/index.js
CHANGED
|
@@ -219,29 +219,29 @@ async function main() {
|
|
|
219
219
|
switch (command) {
|
|
220
220
|
// Resource commands
|
|
221
221
|
case "plan":
|
|
222
|
-
await import("./resources-
|
|
222
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.plan(args.slice(1)));
|
|
223
223
|
break;
|
|
224
224
|
case "apply":
|
|
225
|
-
await import("./resources-
|
|
225
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.apply(args.slice(1)));
|
|
226
226
|
break;
|
|
227
227
|
case "pull":
|
|
228
|
-
await import("./resources-
|
|
228
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.pull(args.slice(1)));
|
|
229
229
|
break;
|
|
230
230
|
case "destroy":
|
|
231
|
-
await import("./resources-
|
|
231
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.destroy(args.slice(1)));
|
|
232
232
|
break;
|
|
233
233
|
case "list":
|
|
234
|
-
await import("./resources-
|
|
234
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.list(args.slice(1)));
|
|
235
235
|
break;
|
|
236
236
|
case "show":
|
|
237
|
-
await import("./resources-
|
|
237
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.show(args.slice(1)));
|
|
238
238
|
break;
|
|
239
239
|
case "diff":
|
|
240
|
-
await import("./resources-
|
|
240
|
+
await import("./resources-R4IYU4BF.js").then((m) => m.diff(args.slice(1)));
|
|
241
241
|
break;
|
|
242
242
|
// Development
|
|
243
243
|
case "dev":
|
|
244
|
-
await import("./dev-
|
|
244
|
+
await import("./dev-GQKLR7AK.js").then((m) => m.dev(args.slice(1)));
|
|
245
245
|
break;
|
|
246
246
|
case "run":
|
|
247
247
|
await import("./run-DJXAXDD2.js").then((m) => m.run(args.slice(1)));
|
|
@@ -251,7 +251,7 @@ async function main() {
|
|
|
251
251
|
await import("./init-FXG2BFGT.js").then((m) => m.init(args.slice(1)));
|
|
252
252
|
break;
|
|
253
253
|
case "register":
|
|
254
|
-
await import("./register-
|
|
254
|
+
await import("./register-OOU477QY.js").then((m) => m.register(args.slice(1)));
|
|
255
255
|
break;
|
|
256
256
|
case "templates":
|
|
257
257
|
await import("./templates-LNUOTNLN.js").then((m) => m.templates(subcommand, args.slice(2)));
|
package/package.json
CHANGED
|
@@ -46,11 +46,6 @@ async function register(args) {
|
|
|
46
46
|
const projectRoot = findProjectRoot();
|
|
47
47
|
loadEnv(projectRoot);
|
|
48
48
|
const appName = getAppName(projectRoot);
|
|
49
|
-
const appNameError = validateProjectExternalId(appName);
|
|
50
|
-
if (appNameError) {
|
|
51
|
-
console.error(pc.red(` ${appNameError}`));
|
|
52
|
-
process.exit(1);
|
|
53
|
-
}
|
|
54
49
|
const existingId = getProjectId(projectRoot);
|
|
55
50
|
if (existingId && !force) {
|
|
56
51
|
console.log();
|
|
@@ -59,6 +54,11 @@ async function register(args) {
|
|
|
59
54
|
console.log();
|
|
60
55
|
return;
|
|
61
56
|
}
|
|
57
|
+
const appNameError = validateProjectExternalId(appName);
|
|
58
|
+
if (appNameError) {
|
|
59
|
+
console.error(pc.red(` ${appNameError}`));
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
62
|
const api = createApiClient();
|
|
63
63
|
console.log();
|
|
64
64
|
const stop = spinner(`Registering "${appName}" on Lumera...`);
|