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

add missing dependencies #3032

Merged
merged 2 commits into from
Mar 27, 2019
Merged

add missing dependencies #3032

merged 2 commits into from
Mar 27, 2019

Conversation

cortopy
Copy link
Contributor

@cortopy cortopy commented Mar 20, 2019

I've added a few dependencies missing from packages. Not having these dependencies breaks installations with pnpm, requiring a fix on behalf of the developer

@fzaninotto
Copy link
Member

what's pnpm? What's the error and the project setup?

@djhi
Copy link
Collaborator

djhi commented Mar 21, 2019

pnpm is an alternative to npm and yarn: https://github.com/pnpm/pnpm

@fzaninotto
Copy link
Member

Well, if it's not compatible with npm and yarn, I don't see why we should make changes in the react-admin codebase to support it.

@kopax
Copy link
Contributor

kopax commented Mar 21, 2019

@fzaninotto pnpm is a replacement, a 3rd package manager choice for all developers (like yarn). We use npm for that reason, even if yarn is more convenient on many points.

I found it dubious that pnpm force package maintainer to list in package.json dependencies that are actually not used in the code base of the distributed module and:

ra-core

ra-ui-materialui

This should be merged. If it was working, that's only because dependencies listed in their respective package.json were bringing those dependencies in the dependency resolution system, but that's still wrong.

I recommend this no-extraneous-dependencies linting rule, that could be added to prevent such mistakes in the future. Maybe @cortopy can add it in this PR?

@cortopy
Copy link
Contributor Author

cortopy commented Mar 21, 2019

@fzaninotto it is compatible with npm and yarn. But it was created with two aims in mind:

  • performance
  • solve doppelgangers that both npm and yarn suffer from

It's the default package manager in rush for these reasons

@cortopy
Copy link
Contributor Author

cortopy commented Mar 21, 2019

@kopax I don't use those plugins as I have come to rely on pnpm to tell me about phantom dependencies. Could add it if needed though

@fzaninotto
Copy link
Member

@kopax thanks for the clarification and the links, now I understand.

@cortopy I'd gladly merge another PR adding the linter rule to prevent such problems in the future.

packages/ra-core/package.json Outdated Show resolved Hide resolved
@fzaninotto fzaninotto added this to the 2.8.4 milestone Mar 26, 2019
@djhi djhi merged commit 7a52d57 into marmelab:master Mar 27, 2019
@cortopy cortopy deleted the pnpm_dependencies branch March 27, 2019 09:12
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.

4 participants