Skip to content

fix: utils requires for resolver-node to be dependent #828#1492

Closed
anion155 wants to merge 1 commit into
import-js:masterfrom
anion155:patch-1
Closed

fix: utils requires for resolver-node to be dependent #828#1492
anion155 wants to merge 1 commit into
import-js:masterfrom
anion155:patch-1

Conversation

@anion155

@anion155 anion155 commented Oct 1, 2019

Copy link
Copy Markdown

fix #828.
Tested with pnpm by linking resolver-node to module-utils's node_modules folder as if it was declared in peerDependencies, it worked. So I'm assuming just putting it in peerDependencies would work too.

@anion155 anion155 changed the title fix: utils requires for resolver-node to be dependent #828 fix: utils requires for resolver-node to be dependent https://github.com/benmosher/eslint-plugin-import/issues/828 Oct 1, 2019
@anion155 anion155 changed the title fix: utils requires for resolver-node to be dependent https://github.com/benmosher/eslint-plugin-import/issues/828 fix: utils requires for resolver-node to be dependent #828 Oct 1, 2019
@coveralls

coveralls commented Oct 1, 2019

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.183% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

6 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.8%) to 96.116% when pulling 747b0f2 on anion155:patch-1 into 5e143b2 on benmosher:master.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #828 (comment) for the proper solution to #828.

Comment thread utils/package.json
"pkg-dir": "^2.0.0"
},
"peerDependencies": {
"eslint-import-resolver-node": "^0.3.2"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this definitely isn't the right solution; eslint-module-utils does not require the node resolver.

@anion155

anion155 commented Oct 15, 2019

Copy link
Copy Markdown
Author

@ljharb Sorry for long reaction. So then, add resolve package and wrap it to match utils/resolve's exports, would be a good approach?

@ljharb

ljharb commented Oct 16, 2019

Copy link
Copy Markdown
Member

I'm still not sure what the underlying issue is; but anything that works with npm but doesn't work with an alternative client, is broken in the alternative client by definition.

#828 (comment) is the expected solution here. Want to update the PR to do only that?

@ljharb

ljharb commented Jan 4, 2020

Copy link
Copy Markdown
Member

This seems to have been fixed by #1591.

@ljharb ljharb closed this Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Why isn't "eslint-import-resolver-node" listed in eslint-module-utils's peerDependencies?

3 participants