-
Notifications
You must be signed in to change notification settings - Fork 41
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
Use npm-logical-tree to get a traversable dependency graph #5
Comments
Why cannot we just use JSON.parse(), to parse the strings? |
How do you mean @redoz94 ? |
Ah, I think this is due to bad wording on my part in the issue name - sorry! npm-logical-tree is pretty neat in that it would allow us to get a traversable tree representation of a package.json + package-lock.json combination. We could use that to figure out all the dependencies and make a yarn.lock file (or do the reverse with some adjustments). It's far simpler than what this package does at the moment. |
As an alternative: https://github.com/npm/arborist |
For sure :) |
Right now, we're doing a lot of this manually, and flattening the package-lock.json file. It'll save a lot (and likely protect against future breakage) to use this instead:
https://www.npmjs.com/package/npm-logical-tree
The text was updated successfully, but these errors were encountered: