Skip to content

fix(cli): invalid package.plain.json.ejs template #7416

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

Merged
merged 1 commit into from
Apr 27, 2021
Merged

fix(cli): invalid package.plain.json.ejs template #7416

merged 1 commit into from
Apr 27, 2021

Conversation

simonbrunel
Copy link
Contributor

Generating a project (lb4 app) without enabling the loopbackBuild feature produces an invalid package.json with the following errors:

Fixes for these issues are consistent with package.json.ejs.

Though, I'm wondering if I'm missing something because some of these bugs are 3 years old but I can't find any related bug report.

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

Generating a project (`lb4 app`) without enabling the `loopbackBuild`
feature produces an invalid `package.json` with the following errors:

- duplicated `main` field (should be `types` for the second one)
- incorrect `types` path (should be `dist/index.d.ts`)
- `services` feature not handled (missing dependency)
- `repositories` flag not handled (always enabled)
- duplicated `source-map-support` dependency

Fixes for these issues are consistent with `package.json.ejs`.

Signed-off-by: Simon Brunel <[email protected]>
@simonbrunel simonbrunel requested a review from agnes512 as a code owner April 20, 2021 20:59
@dhmlau dhmlau merged commit df085a4 into loopbackio:master Apr 27, 2021
@dhmlau
Copy link
Member

dhmlau commented Apr 27, 2021

@simonbrunel, thanks for your contribution. Your PR has landed! 🎉

@simonbrunel simonbrunel deleted the fix/package.plain.json.ejs branch April 27, 2021 16:02
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

Successfully merging this pull request may close these issues.

3 participants