summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-16 20:41:27 +0100
committerGitHub <noreply@github.com>2022-11-16 20:41:27 +0100
commit1416713cb3af8a952b1ae9952091706e2540341c (patch)
treea57fd6dac796a0126eedff470c041d01f9c0bf31 /ext/node/lib.rs
parentbd159b8bad34acefbd6e222781f3d7c6319c9bef (diff)
fix(npm): using types for packages with subpath (#16656)
For CommonJS packages we were not trying different extensions for files specified as subpath of the package ([package_name]/[subpath]). This commit fixes that.
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index b0d5485b4..d69d3b6fe 100644
--- a/ext/node/lib.rs
+++ b/ext/node/lib.rs
@@ -27,6 +27,7 @@ pub use resolution::legacy_main_resolve;
pub use resolution::package_exports_resolve;
pub use resolution::package_imports_resolve;
pub use resolution::package_resolve;
+pub use resolution::path_to_declaration_path;
pub use resolution::NodeModuleKind;
pub use resolution::DEFAULT_CONDITIONS;
pub use resolution::TYPES_CONDITIONS;