Skip to content

fix(cli): tauri add NPM packages for community plugins#12246

Merged
lucasfernog merged 4 commits intotauri-apps:devfrom
marcomq:dev
Jan 7, 2025
Merged

fix(cli): tauri add NPM packages for community plugins#12246
lucasfernog merged 4 commits intotauri-apps:devfrom
marcomq:dev

Conversation

@marcomq
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown
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
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