Add engine field verification with installed-check
#581
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I used
knip
as a good project to verify the latest addition of workspace support in myinstalled-check
module, and I thought I could just as well send a PR in case you are interested in running it yourself.It mainly verifies that one doesn't promise more in
engines.node
than what ones dependencies can back up, but it also has checks for whether one is running an outdatednode_modules
installation (as else the other data will be wrong as it uses the locally installed data for verification) and whether one promises a wider peer dependency range than what ones dependencies does (not applicable to this project)Running it in verbose mode (
--verbose / -v
) shows that there are a couple of dependencies who are not publishing a node.js engine range:But apart from those it verified that
knip
itself has a good engine range right now and it suggested engine ranges for the two other workspaces as well.