@faable/faable 1.21.0 → 1.22.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.
@@ -59,6 +59,13 @@ const deploy = {
59
59
  const config = Configuration.instance().deployConfig();
60
60
  const app_id = await resolve_app_id(args.app_id, ctx.appId, api, workdir);
61
61
  const app = await api.getApp(app_id);
62
+ // Monorepo Root Directory: the server is the source of truth
63
+ // (App.root_dir), so no repo config file is needed. A local
64
+ // faable.json rootDir (dev override) still wins if set.
65
+ if (!config.rootDir && app.root_dir) {
66
+ config.rootDir = app.root_dir;
67
+ log.info(`📁 Monorepo root directory (from app): ${app.root_dir}`);
68
+ }
62
69
  // Capture the commit/ref/actor so the deployment records which commit
63
70
  // it came from and who pushed it (env in CI, git fallback locally).
64
71
  const git = await git_context({ workdir });
@@ -54,6 +54,7 @@ class Configuration {
54
54
  startCommand: this.config.startCommand,
55
55
  buildCommand: this.config.buildCommand,
56
56
  buildpack: this.config.buildpack,
57
+ rootDir: this.config.rootDir,
57
58
  next: this.config.next,
58
59
  };
59
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@actions/core": "^3.0.0",
30
- "@faabletools/buildpacks": "^1.0.0",
30
+ "@faabletools/buildpacks": "^1.7.0",
31
31
  "axios": "^1.13.2",
32
32
  "fs-extra": "^11.3.2",
33
33
  "handlebars": "^4.7.8",