diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-10-02 15:11:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-02 15:11:43 -0700 |
commit | cb74975ab2b88a984c11a9bbb33ff2a36ccb2acb (patch) | |
tree | ba479203e730059484e42c360db3595322c4b10b /tests/napi/uv_test.js | |
parent | cac28b52621975137b86d4fd6efc32cecc10d682 (diff) |
fix(install): compare versions directly to decide whether to create a child node_modules dir for a workspace member (#26001)
Fixes #25861.
Previously we were attempting to match the version requirement against
the version already present in `node_modules` root, and if they didn't
match we would create a node_modules dir in the workspace member's
directory with the dependency.
Aside from the fact that this caused the panic, on second thought it
just doesn't make sense in general. We shouldn't be semver matching, as
resolution has already occurred and decided what package versions are
required. Instead, we can just compare the versions directly.
Diffstat (limited to 'tests/napi/uv_test.js')
0 files changed, 0 insertions, 0 deletions