Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node-resolve): handle "package.json" being in path #927

Merged
merged 5 commits into from Jul 15, 2021

Conversation

tjenkinson
Copy link
Member

Rollup Plugin Name: node-resolve

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

Description

I spotted we were doing a const pkgDr = pkgJsonPath.replace('package.json', '');, which would fail if "package.json" was anywhere else in the path (which admittedly is probably an edge case), so decided to fix that.

In the process I found a similar bug with eslint 馃槄 so will be opening a PR there too, but for now have disabled the folder that triggers that bug in the config file.

@shellscape shellscape merged commit 7d34204 into master Jul 15, 2021
@shellscape shellscape deleted the node-resolve-refactor branch July 15, 2021 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants