Steps to reproduce multiple issues:
- Have yarn 1.22.0
- Have rush 5.20.0
- Run
rush update
- All works as expected (check
node_modules
of all packages) - Go to
already-added
module and add@types/lodash
intodependencies
rush update
(check node_modules ofalready-added
)- Works as expected,
@types/lodash
is added - Remove
@types/lodash
frompackage.json
rush update
- It stays in
node_modules
rush update --full
- It's gone. Good.
- Go add
add-me
todependencies
ofadd-to-me
- Run
rush update
- Check
node_modules
ofadd-to-me
there is NOadd-me
package added. (same applies torush-link.json
) - Run
rush update --full
- Nothing changed, same issue.
- Add
@types/lodash
toadd-to-me
intodependencies
- Run
rush update
(checknode_modules
ofadd-to-me
) @types/lodash
is not added tonode_modules
nor toyarn.lock
- Run
rush update --full
- Nothing changed.
@types/lodash
is not added tonode_modules
nor toyarn.lock
- Add
@types/node
toalready-added
intodependencies
- Run
rush update
(check node_modules ofalready-added
) - For some weird reason
@types/lodash
is added instead of@types/node
- Run
rush update --full
(check node_modules ofalready-added
) @types
folder got removed completely.- Add
@types/lodash
toalready-added
intodependencies
- Run
rush update --full
(check node_modules ofalready-added
) - Same, nothing changed. Only
lodash
stays there. Meanwhileyarn.lock
is untouched since our first update - Add
@types/uuid
toalready-added
todevDependencies
and runrush update
- It detects that something is have to be added! And adds only
@types/lodash
and nothing else.
Any manual deletion of yarn.lock
of rush-link.json
+ rush update
, or whatever commands like unlink
link
doesn't fix the issue
Only rush update --full --purge
fixes it all. But it's too long for real projects to make this all the time.