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

Get runner from the "packageManager" field in package.json #89

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

inoyakaigor
Copy link

Main feature

Use the field «packageManager» from package.json as runner if it exists. Commits: feature and test

Description

This field is set by the Corepack – manager of package managers which included in Node.js by default. Official docs
In case of user is using Corepack more reasonable to use package manager defined to a project by it rather than default npm to avoid possible bugs.

Bonus

  • Updated all dependencies to actual ones
  • Switched to ESM
  • Fixed all tests

Notes

  • I've changed package require-inject to esmock because first one is not supported anymore (last commit 7 years ago)
  • Minimum supported version now is Node v20 because it's current LTS version and dependencies (should work under Node v18 or even 16, but not tested)
  • Since TAP api has changed last years I've slightly modified tests but everything should work as previous
  • I think it should be next major release

image

@inoyakaigor
Copy link
Author

@ruyadorno Hi! Could you look into this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant