1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/cli/npm/resolvers
Bartek Iwańczuk 2f651b2d64
fix(npm): canonicalize filename before returning (#18948)
This commit changes how paths for npm packages are handled,
by canonicalizing them when resolving. This is done so that instead
of returning
"node_modules/<package_name>@<version>/node_modules/<dep>/index.js"
(which is a symlink) we "node_modules/<dep>@<dep_version>/index.js.

Fixes https://github.com/denoland/deno/issues/18924
Fixes https://github.com/bluwy/create-vite-extra/issues/31

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2023-05-02 02:35:33 +02:00
..
common.rs refactor(ext/node): enforce interior mutable for NodePermissions to remove clones (#18831) 2023-04-24 21:07:48 -04:00
global.rs refactor(ext/node): enforce interior mutable for NodePermissions to remove clones (#18831) 2023-04-24 21:07:48 -04:00
local.rs fix(npm): canonicalize filename before returning (#18948) 2023-05-02 02:35:33 +02:00
mod.rs refactor(ext/node): enforce interior mutable for NodePermissions to remove clones (#18831) 2023-04-24 21:07:48 -04:00