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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to JS-based which command #154

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Switch to JS-based which command #154

merged 1 commit into from
Oct 18, 2024

Conversation

voxpelli
Copy link
Collaborator

@voxpelli voxpelli commented Oct 2, 2024

Version 3.0.1 of which is the latest that supports Node 14. Version 4 requires Node 16 and version 5 requires Node 18. So I'm sticking with 3.0.1 to avoid bumping the engines range in this PR.

which is built and maintained by npm: https://github.com/npm/node-which

And is tested across multiple environments: https://github.com/npm/node-which/blob/b8d11c791296a3baf44703352619621215189b0e/.github/workflows/ci.yml#L54-L65

Fixes #153

Version `3.0.1` of `which` is the latest that supports Node 14. Version 4 requires Node 16 and version 5 requires Node 18. So I'm sticking with `3.0.1` to avoid bumping the engines range in this PR.

`which` is built and maintained by `npm`: https://github.com/npm/node-which

And is tested across multiple environments: https://github.com/npm/node-which/blob/b8d11c791296a3baf44703352619621215189b0e/.github/workflows/ci.yml#L54-L65

Fixes #153
@voxpelli voxpelli requested a review from bcomnes October 2, 2024 13:09
@voxpelli voxpelli self-assigned this Oct 2, 2024
@voxpelli voxpelli added the bug Something isn't working label Oct 2, 2024
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/which@3.0.1 environment Transitive: filesystem +1 18.4 kB npm-cli-ops

View full report↗︎

@@ -36,7 +36,8 @@
"minimatch": "^9.0.0",
"pidtree": "^0.6.0",
"read-package-json-fast": "^3.0.2",
"shell-quote": "^1.7.3"
"shell-quote": "^1.7.3",
"which": "^3.0.1"
Copy link

Choose a reason for hiding this comment

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

which is lovely.

@bcomnes
Copy link
Owner

bcomnes commented Oct 18, 2024

Sorry for the delay, thanks for fixing this.

@bcomnes bcomnes merged commit ec1c598 into master Oct 18, 2024
12 checks passed
@bcomnes bcomnes deleted the voxpelli/issue153 branch October 18, 2024 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle platforms that are missing the which command
3 participants