summaryrefslogtreecommitdiff
path: root/cli/module_loader.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-24 17:08:11 -0400
committerGitHub <noreply@github.com>2023-04-24 17:08:11 -0400
commit0e97fa4d5f056e12d3c0704bfb7bcdc56316ef94 (patch)
tree3f38d304656b9d15d1e71a6edb8b17e1e5a0546c /cli/module_loader.rs
parentbe9e3c430fdd58cfdd36cb9d6eba076e1b74d2b7 (diff)
fix(npm): only include top level packages in top level node_modules directory (#18824)
We were indeterministically including packages in the top level `node_modules/` folder when using a local node_modules directory. This change aligns with pnpm and only includes top level packages in this folder. This should be faster for initializing the folder, but may expose issues in packages that reference other packages not defined in their dependencies. That said, the behaviour previously was previously broken. This has exposed a bug in the require implementation where it doesn't find a package (which is the main underlying issue here). There is a failing test already for this in the test suite after this change. Closes #18822 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/module_loader.rs')
0 files changed, 0 insertions, 0 deletions