@stackable-labs/cli-app-extension 1.61.0 → 1.62.1
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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21,6 +21,9 @@ import open from 'open';
|
|
|
21
21
|
import { homedir } from 'os';
|
|
22
22
|
import https from 'https';
|
|
23
23
|
|
|
24
|
+
// ../../lib/utils-js/src/format.ts
|
|
25
|
+
var toKebabCase = (value) => value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
26
|
+
|
|
24
27
|
// ../../lib/utils-js/src/promise.ts
|
|
25
28
|
var delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
26
29
|
var WORDMARK = [
|
|
@@ -1005,9 +1008,9 @@ var TemplateSelect = ({ onSubmit, onBack }) => {
|
|
|
1005
1008
|
|
|
1006
1009
|
// src/lib/api.ts
|
|
1007
1010
|
var DEFAULT_ADMIN_API_URL = "https://api-use1.stackablelabs.io/admin";
|
|
1008
|
-
var DEFAULT_PUBLIC_API_URL = "https://api.stackablelabs.io/app-extension/
|
|
1011
|
+
var DEFAULT_PUBLIC_API_URL = "https://api.stackablelabs.io/app-extension/latest";
|
|
1009
1012
|
var getAdminApiBaseUrl = () => process.env.ADMIN_API_BASE_URL ?? DEFAULT_ADMIN_API_URL;
|
|
1010
|
-
var getPublicApiBaseUrl = () => process.env.
|
|
1013
|
+
var getPublicApiBaseUrl = () => process.env.PUBLIC_API_BASE_URL ?? DEFAULT_PUBLIC_API_URL;
|
|
1011
1014
|
var CLI_CLIENT_NAME = "@stackable-labs/cli-app-extension";
|
|
1012
1015
|
var authHeaders = (token) => ({
|
|
1013
1016
|
authorization: `Bearer ${token}`,
|
|
@@ -1434,9 +1437,6 @@ var writeDevContext = async (projectRoot, ctx) => {
|
|
|
1434
1437
|
await writeEnvFile(join(projectRoot, ".env.stackable"), env);
|
|
1435
1438
|
};
|
|
1436
1439
|
|
|
1437
|
-
// src/lib/utils.ts
|
|
1438
|
-
var toKebabCase = (value) => value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
1439
|
-
|
|
1440
1440
|
// src/lib/scaffold.ts
|
|
1441
1441
|
var isTextFile = (filePath) => /\.(ts|tsx|js|jsx|json|md|html|yml|yaml|env|gitignore|nvmrc)$/i.test(filePath);
|
|
1442
1442
|
var normalizeTargets = (targets) => Array.from(new Set(targets));
|