@base44-preview/cli 0.2.5-pr.683.39ac9ac → 0.2.6-pr.685.56bddb0
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/cli/index.js +10 -5
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -238778,8 +238778,11 @@ async function fetchFunctionLogs(functionName, filters = {}) {
|
|
|
238778
238778
|
}
|
|
238779
238779
|
// src/core/resources/function/config.ts
|
|
238780
238780
|
import { basename as basename4, dirname as dirname8, join as join10, relative as relative3, resolve as resolve2 } from "node:path";
|
|
238781
|
+
function getSharedDir(functionsDir) {
|
|
238782
|
+
return resolve2(functionsDir, "..", "shared");
|
|
238783
|
+
}
|
|
238781
238784
|
async function readSharedFiles(functionsDir) {
|
|
238782
|
-
const sharedDir =
|
|
238785
|
+
const sharedDir = getSharedDir(functionsDir);
|
|
238783
238786
|
if (!await pathExists(sharedDir)) {
|
|
238784
238787
|
return [];
|
|
238785
238788
|
}
|
|
@@ -239384,7 +239387,7 @@ import { join as join13 } from "node:path";
|
|
|
239384
239387
|
// package.json
|
|
239385
239388
|
var package_default = {
|
|
239386
239389
|
name: "base44",
|
|
239387
|
-
version: "0.2.
|
|
239390
|
+
version: "0.2.6",
|
|
239388
239391
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
239389
239392
|
type: "module",
|
|
239390
239393
|
bin: {
|
|
@@ -270208,14 +270211,16 @@ async function createDevServer(options) {
|
|
|
270208
270211
|
emitEntityEvent = (appId, entityName, event) => {
|
|
270209
270212
|
broadcastEntityEvent(io, appId, entityName, event);
|
|
270210
270213
|
};
|
|
270214
|
+
const functionsDir = join40(dirname29(project.configPath), project.functionsDir);
|
|
270211
270215
|
const base44ConfigWatcher = new WatchBase44({
|
|
270212
|
-
functions:
|
|
270216
|
+
functions: functionsDir,
|
|
270217
|
+
shared: getSharedDir(functionsDir),
|
|
270213
270218
|
entities: join40(dirname29(project.configPath), project.entitiesDir)
|
|
270214
270219
|
}, devLogger);
|
|
270215
270220
|
base44ConfigWatcher.on("change", async (name) => {
|
|
270216
270221
|
try {
|
|
270217
270222
|
const { functions, entities } = await options.loadResources();
|
|
270218
|
-
if (name === "functions") {
|
|
270223
|
+
if (name === "functions" || name === "shared") {
|
|
270219
270224
|
const previousFunctionCount = functionManager.getFunctionNames().length;
|
|
270220
270225
|
await functionManager.reload(functions);
|
|
270221
270226
|
const names = functionManager.getFunctionNames();
|
|
@@ -274780,4 +274785,4 @@ export {
|
|
|
274780
274785
|
runCLI
|
|
274781
274786
|
};
|
|
274782
274787
|
|
|
274783
|
-
//# debugId=
|
|
274788
|
+
//# debugId=354DCF351C3C362C64756E2164756E21
|