Skip to content

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