rnx-kit
rnx-kit copied to clipboard
Normalize paths before trying to extract package name based on paths
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....