rnx-kit icon indicating copy to clipboard operation
rnx-kit copied to clipboard

Normalize paths before trying to extract package name based on paths

Open dannyvv opened this issue 4 years ago • 0 comments

At the moment the logic in @rnx-kit/third-party-notices tries to extract the module name textually from the path that is in the bundle. In practice this doesn't happen, but technically the path could be: ..../node_modules/something/../package/foo.js. The current logic would assume the package is called something instead of package.

The logic should normalize the path first before trying to extract the package name....

dannyvv avatar May 04 '21 17:05 dannyvv