@base44-preview/cli 0.0.24-pr.146.e5ee77a → 0.0.25-pr.19.6a3474d
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/bin/dev.cmd +2 -0
- package/bin/run.cmd +2 -0
- package/dist/index.js +24 -3
- package/package.json +8 -2
package/bin/dev.cmd
ADDED
package/bin/run.cmd
ADDED
package/dist/index.js
CHANGED
|
@@ -30642,11 +30642,31 @@ async function deployAll(projectData) {
|
|
|
30642
30642
|
//#region src/core/project/app-config.ts
|
|
30643
30643
|
let cache = null;
|
|
30644
30644
|
/**
|
|
30645
|
+
* Load app config from BASE44_CLI_TEST_OVERRIDES env var.
|
|
30646
|
+
* @returns true if override was applied, false otherwise
|
|
30647
|
+
*/
|
|
30648
|
+
function loadFromTestOverrides() {
|
|
30649
|
+
const overrides = process.env.BASE44_CLI_TEST_OVERRIDES;
|
|
30650
|
+
if (!overrides) return false;
|
|
30651
|
+
try {
|
|
30652
|
+
const data = JSON.parse(overrides);
|
|
30653
|
+
if (data.appConfig?.id && data.appConfig?.projectRoot) {
|
|
30654
|
+
cache = {
|
|
30655
|
+
id: data.appConfig.id,
|
|
30656
|
+
projectRoot: data.appConfig.projectRoot
|
|
30657
|
+
};
|
|
30658
|
+
return true;
|
|
30659
|
+
}
|
|
30660
|
+
} catch {}
|
|
30661
|
+
return false;
|
|
30662
|
+
}
|
|
30663
|
+
/**
|
|
30645
30664
|
* Initialize app config by reading from .app.jsonc.
|
|
30646
30665
|
* Must be called before using getAppConfig().
|
|
30647
30666
|
* @throws Error if no project found or .app.jsonc missing
|
|
30648
30667
|
*/
|
|
30649
30668
|
async function initAppConfig() {
|
|
30669
|
+
if (loadFromTestOverrides()) return;
|
|
30650
30670
|
if (cache) return;
|
|
30651
30671
|
const projectRoot = await findProjectRoot();
|
|
30652
30672
|
if (!projectRoot) throw new Error("No Base44 project found. Run this command from a project directory with a config.jsonc file.");
|
|
@@ -31595,7 +31615,8 @@ const logoutCommand = new Command("logout").description("Logout from current dev
|
|
|
31595
31615
|
async function pushEntitiesAction() {
|
|
31596
31616
|
const { entities } = await readProjectConfig();
|
|
31597
31617
|
if (entities.length === 0) return { outroMessage: "No entities found in project" };
|
|
31598
|
-
|
|
31618
|
+
const entityNames = entities.map((e$1) => e$1.name).join(", ");
|
|
31619
|
+
M.info(`Found ${entities.length} entities to push: ${entityNames}`);
|
|
31599
31620
|
const result = await runTask("Pushing entities to Base44", async () => {
|
|
31600
31621
|
return await pushEntities(entities);
|
|
31601
31622
|
}, {
|
|
@@ -39058,7 +39079,7 @@ var open_default = open;
|
|
|
39058
39079
|
//#region src/cli/commands/project/dashboard.ts
|
|
39059
39080
|
async function openDashboard() {
|
|
39060
39081
|
const dashboardUrl = getDashboardUrl();
|
|
39061
|
-
await open_default(dashboardUrl);
|
|
39082
|
+
if (!process.env.CI) await open_default(dashboardUrl);
|
|
39062
39083
|
return { outroMessage: `Dashboard opened at ${dashboardUrl}` };
|
|
39063
39084
|
}
|
|
39064
39085
|
const dashboardCommand = new Command("dashboard").description("Open the app dashboard in your browser").action(async () => {
|
|
@@ -39237,7 +39258,7 @@ const siteDeployCommand = new Command("site").description("Manage site deploymen
|
|
|
39237
39258
|
|
|
39238
39259
|
//#endregion
|
|
39239
39260
|
//#region package.json
|
|
39240
|
-
var version = "0.0.
|
|
39261
|
+
var version = "0.0.25";
|
|
39241
39262
|
|
|
39242
39263
|
//#endregion
|
|
39243
39264
|
//#region src/cli/program.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base44-preview/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25-pr.19.6a3474d",
|
|
4
4
|
"description": "Base44 CLI - Unified interface for managing Base44 applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dev": "./bin/dev.js",
|
|
17
17
|
"start": "./bin/run.js",
|
|
18
18
|
"clean": "rm -rf dist",
|
|
19
|
-
"lint": "eslint src",
|
|
19
|
+
"lint": "eslint src tests",
|
|
20
20
|
"test": "vitest run",
|
|
21
21
|
"test:watch": "vitest"
|
|
22
22
|
},
|
|
@@ -52,9 +52,12 @@
|
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
53
|
"ky": "^1.14.2",
|
|
54
54
|
"lodash.kebabcase": "^4.1.1",
|
|
55
|
+
"msw": "^2.12.7",
|
|
55
56
|
"open": "^11.0.0",
|
|
56
57
|
"p-wait-for": "^6.0.0",
|
|
58
|
+
"strip-ansi": "^7.1.2",
|
|
57
59
|
"tar": "^7.5.4",
|
|
60
|
+
"tmp-promise": "^3.0.3",
|
|
58
61
|
"tsdown": "^0.12.4",
|
|
59
62
|
"tsx": "^4.19.2",
|
|
60
63
|
"typescript": "^5.7.2",
|
|
@@ -64,5 +67,8 @@
|
|
|
64
67
|
},
|
|
65
68
|
"engines": {
|
|
66
69
|
"node": ">=20.19.0"
|
|
70
|
+
},
|
|
71
|
+
"optionalDependencies": {
|
|
72
|
+
"@rollup/rollup-linux-x64-gnu": "^4.56.0"
|
|
67
73
|
}
|
|
68
74
|
}
|