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(cli): tauri add NPM packages for community plugins #12246

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

marcomq
Copy link
Contributor

@marcomq marcomq commented Jan 5, 2025

It currently isn't possible to simply add a community plugin the same was as adding official plugins.
Trying to perform npm run tauri add tauri-plugin-python is trying to install npm package @tauri-apps/plugin-python.
But the npm scope @tauri-apps/ is reserved for official tauri plugins.

The official documentation recommends to name the npm package tauri-plugin-{name}-api and it should be possible to have a parameter that makes it possible to install that package.

This changes the command to check if the plugin is an official tauri plugin or not, using the appropriate npm package name format

Copy link
Contributor

github-actions bot commented Jan 6, 2025

Package Changes Through adc9662

There are 6 changes which include tauri-cli with patch, @tauri-apps/cli with patch, tauri-build with patch, tauri with patch, tauri-bundler with patch, tauri-driver with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-bundler 2.2.0 2.2.1
tauri-build 2.0.4 2.0.5
tauri 2.2.0 2.2.1
@tauri-apps/cli 2.2.2 2.2.3
tauri-cli 2.2.2 2.2.3
tauri-driver 2.0.1 2.0.2

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog lucasfernog changed the title feat(cli): Add --community parameter to tauri add fix(cli): tauri add NPM packages for community plugins Jan 7, 2025
@lucasfernog lucasfernog merged commit 98f62e6 into tauri-apps:dev Jan 7, 2025
14 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.

[docs/feat] npm run tauri add tauri-plugin-custom for community plugins
2 participants