Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

The great gently rm refactor #10270

Closed
wants to merge 4 commits into from
Closed

The great gently rm refactor #10270

wants to merge 4 commits into from

Conversation

iarna
Copy link
Contributor

@iarna iarna commented Nov 5, 2015

Fixes: #9980

This was done to try (again) to make gently-rm easier to reason about. Plus fix the bug where globally linked modules couldn't be removed.

Some squashing is probably ultimately in order.

The final, refactored form of the module with full context is here:

https://github.com/npm/npm/blob/60da484/lib/utils/gently-rm.js

And the test is here:

https://github.com/npm/npm/blob/60da484/test/tap/gently-rm-linked-module.js

@iarna iarna force-pushed the iarna/gently-rm-refactor branch 4 times, most recently from ed627e5 to 60da484 Compare November 5, 2015 19:54
@iarna iarna added this to the next-next-3 milestone Nov 6, 2015
@iarna iarna force-pushed the iarna/gently-rm-refactor branch 3 times, most recently from bb752cc to 14f4d92 Compare November 11, 2015 02:08
iarna added a commit that referenced this pull request Nov 12, 2015
iarna added a commit that referenced this pull request Nov 12, 2015
iarna added a commit that referenced this pull request Nov 12, 2015
iarna added a commit that referenced this pull request Nov 12, 2015
@iarna
Copy link
Contributor Author

iarna commented Nov 13, 2015

This landed in 3.4.1

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

Successfully merging this pull request may close these issues.

None yet

1 participant