#1758

[Feature]: Let `openship.json` exclude detected monorepo apps (`enabled: false` / `monorepo.exclude`)

Openvinayakyadav2709opened 20d ago

Existing issue

  • I have searched the existing issues and found no duplicate.

Problem description

openship.json monorepo.apps[] can only override detected sub-apps (name, commands, port, ...). There is no way to exclude a detected workspace package. A repo with a Bun/npm workspace that contains non-deployable packages (for example a mobile app) gets them all treated as sub-apps.

Steps to reproduce

  1. Use a workspace repo with several packages, one of which should never be deployed.
  2. Add monorepo.apps entries for the ones you want.
  3. The remaining detected packages still appear as sub-apps.

Evidence

  • packages/core/src/openship-config/schema.ts: OpenshipMonorepoApp has only build-shaping fields (docs comment: "These override what the detector found ... matched by path").
  • packages/core/src/openship-config/parse.ts (parseMonorepo) does not read any exclude/enabled field.

Suggested change

Add enabled: false on an app entry (matched by rootDirectory) and/or monorepo.exclude: string[] of paths, honoured by detection so the app never becomes a service.

Environment

  • OpenShip version/commit: 0.9.12 (source references below are from main at 8ff8950)
  • Deployment method: self-hosted, Docker Compose install via openship up
  • Operating system: Debian 13
  • Browser (if applicable): n/a

Activity

0

No activity yet.