Skip to content

Commit cad5504

Browse files
authored
fix(cli): Fix npm package name in tauri add (#12354)
1 parent f8e50e8 commit cad5504

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/cli-add-pkgname.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tauri-cli: 'patch:bug'
3+
'@tauri-apps/cli': 'patch:bug'
4+
---
5+
6+
Fixed and issue that caused `tauri add` to try to install incorrect npm packages.

crates/tauri-cli/src/add.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn run(options: Options) -> Result<()> {
5858
let plugin_snake_case = plugin.replace('-', "_");
5959
let crate_name = format!("tauri-plugin-{plugin}");
6060
let npm_name = if is_known {
61-
format!("tauri-apps/plugin-{plugin}")
61+
format!("@tauri-apps/plugin-{plugin}")
6262
} else {
6363
format!("tauri-plugin-{plugin}-api")
6464
};

0 commit comments

Comments
 (0)