@faable/faable 1.26.1 → 1.27.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.
|
@@ -42,12 +42,16 @@ const deploy = {
|
|
|
42
42
|
const config = Configuration.instance().deployConfig();
|
|
43
43
|
const app_id = await resolve_app_id(args.app_id, ctx.appId, api, workdir);
|
|
44
44
|
const app = await api.getApp(app_id);
|
|
45
|
-
// Monorepo Root Directory
|
|
46
|
-
// (
|
|
47
|
-
// faable.json rootDir (
|
|
48
|
-
|
|
45
|
+
// Monorepo Root Directory — single precedence rule everywhere
|
|
46
|
+
// (arch/deploy/root-dir-faable-json.md): App.root_dir (platform
|
|
47
|
+
// override, exceptional) > repo faable.json rootDir (the supported
|
|
48
|
+
// user option) > repo root. Matches the remote builder.
|
|
49
|
+
if (app.root_dir) {
|
|
49
50
|
config.rootDir = app.root_dir;
|
|
50
|
-
log.info(`📁
|
|
51
|
+
log.info(`📁 Root directory: ${app.root_dir} (platform override)`);
|
|
52
|
+
}
|
|
53
|
+
else if (config.rootDir) {
|
|
54
|
+
log.info(`📁 Root directory: ${config.rootDir} (from faable.json)`);
|
|
51
55
|
}
|
|
52
56
|
// Capture the commit/ref/actor so the deployment records which commit
|
|
53
57
|
// it came from and who pushed it (env in CI, git fallback locally).
|