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

Remove false from version type, add fallback message #258

Merged
merged 3 commits into from Feb 29, 2024

Conversation

tommy-mitchell
Copy link
Contributor

false has had no effect since #68.


Splitting out from #252 (ref: #252 (comment)).

@@ -75,6 +75,7 @@ export const buildOptions = (helpText, options) => {
inferType: false,
input: 'string',
help: helpText,
version: foundPackage?.packageJson.version || 'No version found',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using || over ?? because in #256, the normalization turns pkg.version into an empty string.

@sindresorhus sindresorhus merged commit c00d5c5 into sindresorhus:main Feb 29, 2024
3 checks passed
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