0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00
deno/ext/node
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
..
ops refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00
polyfills fix(npm): only include top level packages in top level node_modules directory (#18824) 2023-04-24 17:08:11 -04:00
analyze.rs refactor(node): move most of cli/node to ext/node (#18797) 2023-04-21 21:02:46 -04:00
Cargo.toml refactor(node): move most of cli/node to ext/node (#18797) 2023-04-21 21:02:46 -04:00
clippy.toml refactor(ext/node): add more methods to 'NodeFs' trait (#18604) 2023-04-06 15:08:14 +02:00
errors.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
lib.rs refactor(ext/node): reorganize ops (#18799) 2023-04-24 12:22:21 +02:00
package_json.rs refactor(node): move most of cli/node to ext/node (#18797) 2023-04-21 21:02:46 -04:00
path.rs chore(ext/node): fix variable name (#17948) 2023-02-27 21:26:02 +01:00
polyfill.rs refactor(node): move most of cli/node to ext/node (#18797) 2023-04-21 21:02:46 -04:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs refactor(node): move most of cli/node to ext/node (#18797) 2023-04-21 21:02:46 -04:00
resolver.rs refactor(node): move most of cli/node to ext/node (#18797) 2023-04-21 21:02:46 -04:00

deno_node

require and other node related functionality for Deno.