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

Fix npm.isCollaborator() on npm v9 #966

Merged
merged 1 commit into from Dec 27, 2022

Conversation

indutny
Copy link
Contributor

@indutny indutny commented Dec 27, 2022

With v9.0.0 release npm has changed the CLI commands for package access. While previously it was npm access ls-collaborators and the output was a JSON object, now it is npm access list collaborators and the output is plain text unless --json flag is provided.

This commit adds support for npm v9.0.0 while keeping support for older npm versions.

With v9.0.0 release [npm][] has changed the CLI commands for package
access. While previously it was `npm access ls-collaborators` and the
output was a JSON object, now it is `npm access list collaborators` and
the output is plain text unless `--json` flag is provided.

This commit adds support for npm v9.0.0 while keeping support for older
npm versions.

[npm]: npm/cli@9c32c6c
@webpro webpro merged commit 3bd405a into release-it:master Dec 27, 2022
@indutny indutny deleted the fix/npm-9-support branch December 27, 2022 21:39
@indutny
Copy link
Contributor Author

indutny commented Dec 27, 2022

Wow, that was quick. Thanks!

webpro added a commit that referenced this pull request Dec 27, 2022
@webpro
Copy link
Collaborator

webpro commented Dec 27, 2022

Thanks for the fix! It's in v15.6.0

@webpro webpro mentioned this pull request Dec 27, 2022
@indutny
Copy link
Contributor Author

indutny commented Dec 27, 2022

Wow, this is awesome!

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.

None yet

2 participants