deno/ext
David Sherret 0e97fa4d5f
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>
2023-04-24 17:08:11 -04:00
..
broadcast_channel chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
cache chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
console chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
crypto chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
fetch refactor(ext/webidl): remove option bags from "makeException" (#18679) 2023-04-20 00:58:41 +02:00
ffi chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
fs chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
http fix(ext/http): ensure that multiple upgrades and multiple simultaneous requests cannot cause a panic (#18810) 2023-04-23 09:59:46 -06:00
io chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
kv chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
napi chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
net feat(ext/http): Rework Deno.serve using hyper 1.0-rc3 (#18619) 2023-04-22 11:48:21 -06:00
node fix(npm): only include top level packages in top level node_modules directory (#18824) 2023-04-24 17:08:11 -04:00
tls chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
url chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00
web refactor(ext/webidl): remove option bags from "makeException" (#18679) 2023-04-20 00:58:41 +02:00
webidl refactor(ext/webidl): remove option bags from "makeException" (#18679) 2023-04-20 00:58:41 +02:00
websocket chore: remove tokio-tungstenite dependency (#18814) 2023-04-23 23:56:55 -04:00
webstorage chore: forward v1.32.5 release commit to main (#18758) 2023-04-18 22:20:49 +02:00