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

dedupe global folder #2

Open
pocesar opened this issue Aug 20, 2014 · 3 comments
Open

dedupe global folder #2

pocesar opened this issue Aug 20, 2014 · 3 comments

Comments

@pocesar
Copy link

pocesar commented Aug 20, 2014

any chance it could work without a package.json lookup? my global node_modules is huge, lodash, async, request, minimatch, glob, rimraf, esprima, inherits...

@jonathanong
Copy link
Contributor

yes. give me a good api.

@jonathanong
Copy link
Contributor

so it also skips deduping and 0.x.y files. if you have an API suggestion for deduping those, let me know

@pocesar
Copy link
Author

pocesar commented Aug 20, 2014

maybe accept a second argument and check if it's a directory, if so walk, it, taking note of the folder name, then creating the root tree out of it (like a virtual package.json, taking the versions from each package.json inside each folder)
npm-semver-dedupe node_modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants