@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: the server is the source of truth
46
- // (App.root_dir), so no repo config file is needed. A local
47
- // faable.json rootDir (dev override) still wins if set.
48
- if (!config.rootDir && app.root_dir) {
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(`📁 Monorepo root directory (from app): ${app.root_dir}`);
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "1.26.1",
3
+ "version": "1.27.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",