#1758
[Feature]: Let `openship.json` exclude detected monorepo apps (`enabled: false` / `monorepo.exclude`)
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
- Use a workspace repo with several packages, one of which should never be deployed.
- Add
monorepo.appsentries for the ones you want. - The remaining detected packages still appear as sub-apps.
Evidence
packages/core/src/openship-config/schema.ts:OpenshipMonorepoApphas 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
mainat 8ff8950) - Deployment method: self-hosted, Docker Compose install via
openship up - Operating system: Debian 13
- Browser (if applicable): n/a
Activity
0No activity yet.