1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 02:27:46 -05:00
denoland-deno/ext/node_resolver
David Sherret c6d1b0a1cc
fix(byonm): resolve npm deps of jsr deps (#25399)
This allows using npm deps of jsr deps without having to add them to the
root package.json.

Works by taking the package requirement and scanning the
`node_modules/.deno` directory for the best matching package, so it
relies on deno's node_modules structure.

Additionally to make the transition from package.json to deno.json
easier, Deno now:

1. Installs npm deps in a deno.json at the same time as installing npm
deps from a package.json.
2. Uses the alias in the import map for `node_modules/<alias>` for
better package.json compatiblity.
2024-09-04 14:00:44 +00:00
..
analyze.rs perf(ext/node): reduce some allocations in require (#25197) 2024-08-26 11:13:39 -04:00
Cargo.toml chore: forward v1.46.2 release commit to main (#25296) 2024-08-29 22:13:28 +02:00
clippy.toml refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
env.rs refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
errors.rs refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
lib.rs fix(byonm): resolve npm deps of jsr deps (#25399) 2024-09-04 14:00:44 +00:00
npm.rs refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
package_json.rs refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
path.rs fix(compile/windows): handle cjs re-export of relative path with parent component (#24795) 2024-07-30 16:46:15 -04:00
README.md refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
resolution.rs fix(task): correct name for scoped npm package binaries (#25390) 2024-09-03 13:56:39 +00:00
sync.rs feat: upgrade V8 to 12.8 (#24693) 2024-07-31 23:22:34 +00:00

Node Resolver

crates docs

Provides Node.js compatible resolution for the Deno project.