Skip to content

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

Merged
shellscape merged 5 commits intomasterfrom
node-resolve-refactor
Jul 15, 2021
Merged

fix(node-resolve): handle "package.json" being in path#927
shellscape merged 5 commits intomasterfrom
node-resolve-refactor

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 force-pushed the master branch 9 times, most recently from cc53f0f to 9c6e762 Compare July 15, 2021 20:06
@shellscape shellscape force-pushed the master branch 2 times, most recently from c33e948 to 1ae22f4 Compare July 15, 2021 21:28
@shellscape shellscape force-pushed the node-resolve-refactor branch from 12c46e3 to 43c20cc Compare July 15, 2021 23:00
@shellscape shellscape force-pushed the node-resolve-refactor branch from 43c20cc to f493831 Compare July 15, 2021 23:10
@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.

3 participants