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

Chore: Plugin repo CLI: Only match packages with the joplin-plugin keyword #11599

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jan 7, 2025

Summary

Currently, the plugin repo CLI identifies Joplin plugins using npm search joplin-plugin --searchlimit 5000 --json. The maximum searchlimit, however seems to be 250 (perhaps as a result of the API).

The search results returned by npm search joplin-plugin ... currently include packages that are not Joplin plugins (e.g. clean-webpack-plugin). As such, limiting the search query to exclude packages that aren't tagged with joplin-plugin should allow more plugins to be identified.

This pull request may fix this issue reported on the forum.

Testing

I've verified that running npm search keywords:joplin-plugin --searchlimit 5000 --json from the command line returns search results containing joplin-plugin.

const searchResults = (await execCommand('npm search joplin-plugin --searchlimit 5000 --json', { showStdout: false, showStderr: false })).trim();
const searchResults = (await execCommand('npm search keywords:joplin-plugin --searchlimit 5000 --json', { showStdout: false, showStderr: false })).trim();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Follow-up PR: Consider using the API instead (or find some package that uses the API). Alternatively, look into sorting by last updated from the command line.

@laurent22 laurent22 merged commit d7d50f4 into laurent22:dev Jan 9, 2025
7 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.

2 participants