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

feat(remove): update node_modules/.bin #63

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

aleclarson
Copy link
Contributor

Improve the remove command by cleaning up after ourselves in the node_modules/.bin directory.

The only relevant commit: 507ad81

Improves upon #61

(Probably wanta merge #62 before this)

and upgrade "husky" to v1.3
Any commands with a --yarn flag will look for a "yarn.lock" file in the working directory. When a lockfile exists, the --yarn flag will be true by default.

Other fixes:
- actually use argv.yarn for the "link" command
- actually use the `getPackageManager` function's argument
- remove unused `showVersion` function
Make the `add` and `link` commands update the "node_modules/.bin" directory.
Yalc now looks for the nearest ancestor that contains a package.json file.

I also did some tidying up!

Fixes wclr#47
Improve the "remove" command by cleaning up after ourselves in the "node_modules/.bin" directory.
@wclr
Copy link
Owner

wclr commented May 6, 2019

This PR seems weird, many changes. Won't yarn take care of cleaning up .bin, what is the real reason to clean up it?

@aleclarson
Copy link
Contributor Author

As I said above, the only commit relevant to this PR is 507ad81. The others are from other PRs that this PR is dependent on.

Maybe yarn cleans up node_modules/.bin, but I don't run yarn every time I run yalc remove, so that doesn't seem relevant.

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.

2 participants