forked from tauri-apps/tauri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli):
tauri add
NPM packages for community plugins (tauri-apps#…
…12246) 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. - closes tauri-apps#12217 This changes the command to check if the plugin is an official tauri plugin or not, using the appropriate npm package name format --------- Co-authored-by: Lucas Nogueira <[email protected]>
- Loading branch information
1 parent
c130af6
commit 98f62e6
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"tauri-cli": patch:bug | ||
"@tauri-apps/cli": patch:bug | ||
--- | ||
|
||
Properly add NPM packages for community plugins when using the `tauri add` command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters