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 a yarn dependency source #31

Closed
jonabc opened this issue May 2, 2018 · 2 comments · Fixed by #232
Closed

Add a yarn dependency source #31

jonabc opened this issue May 2, 2018 · 2 comments · Fixed by #232
Labels
enhancement New feature or request help wanted Extra attention is needed new source Request for a new dependency source

Comments

@jonabc
Copy link
Contributor

jonabc commented May 2, 2018

As found in #30 (comment)

The errors appear to be because my package.json file is actually intended for yarn, and uses some syntax that is not npm-compatible

Yarn's package.json files attempt to be compatible with NPM package.json files but can contain differences that cause the NPM dependency source to fail.

It looks like an indicator that yarn should be used and that npm shouldn't be used is the presence of a yarn.lock file.

@jonabc jonabc added enhancement New feature or request help wanted Extra attention is needed labels May 2, 2018
@jonabc jonabc added the new source Request for a new dependency source label Jun 23, 2018
@jonabc
Copy link
Contributor Author

jonabc commented Oct 22, 2018

I took a look through the yarn CLI and unless I'm missing something, it's nowhere near as easy to enumerate all the data that we need as it is from npm.

I could use some help figuring out either

  • how to enumerate the name, version, directory location (mandatory) and homepage, author (optional, but needed to have parity with the npm source)
  • if it's possible to use npm cli commands with a yarn package.json

@krzysztof-pawlik-gat
Copy link

I've started a pr to have the path added to yarn list --json: yarnpkg/yarn#7462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed new source Request for a new dependency source
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants