Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment to BTP trial should work out of the box #90

Open
gregorwolf opened this issue Mar 1, 2025 · 1 comment
Open

Deployment to BTP trial should work out of the box #90

gregorwolf opened this issue Mar 1, 2025 · 1 comment

Comments

@gregorwolf
Copy link

Hello CAP Team,

I think the deployment to BTP trial should work out of the box. Right now it is failing because the dependencies:

"@cap-js/audit-logging": "^0.8.0",
"@cap-js/attachments": "^1.1.6",

are result in a mta.yaml with dependencies to service: auditlog, service-plan: premium and also service: objectstore, service-plan: standard which are not available in BTP trial.

Best regards,
Gregor

@DanSchlachter
Copy link
Contributor

DanSchlachter commented Mar 5, 2025

Hi Gregor,

we added the plugin dependencies to the devDependencies, so it gets easier to add any of the plugins (just drag & drop files from xmpls into the srv folder and you have a new plugin enabled without having to run npm add @cap-js/...

The issue is that cds add mta doesn't care here, if the dependency is a devDependency or a production dependency, as it checks the cds.env instead to check whether to add to the mta.

A workaround would be to run:
npm install --production

before running:
cds add mta

@swaldmann any idea how to improve this?

Thanks
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants