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

Postgresql create deploy script example generates an invalid 'package.json' file #459

Closed
sedacrivity opened this issue Sep 29, 2023 · 1 comment

Comments

@sedacrivity
Copy link

The Postgresql create deploy script generates an invalid 'package.json' file

echo '{"dependencies": { "@sap/cds": "*", "@cap-js/postgres": "*"},  "scripts": {    "start": "cds-deploy",}}' > gen/pg/package.json

contains an invalid ',' after "cds-deploy"

npm ERR! JSON.parse Unexpected token "}" (0x7D) in JSON at position 101 while parsing near "...tart\": \"cds-deploy\",}}\n"
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

https://cap.cloud.sap/docs/guides/databases-postgres#create-the-shell-script

@renejeglinsky
Copy link
Contributor

Hi,

thanks for opening this issue. It has already been fixed, just not yet shipped: #448

All the best,
René

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