fix(cli): use npm run tauri -- foo for correctly passing args to tauri#6448
fix(cli): use npm run tauri -- foo for correctly passing args to tauri#6448lucasfernog merged 2 commits intotauri-apps:nextfrom
npm run tauri -- foo for correctly passing args to tauri#6448Conversation
npm run tauri -- foo for correctly pass args to taurinpm run tauri -- foo for correctly passing args to tauri
b34406f to
0eb924d
Compare
| ``` | ||
| yarn tauri dev | ||
| -or- | ||
| npm run tauri dev |
| # with yarn | ||
| $ yarn tauri dev | ||
| # with npm | ||
| $ npm run tauri dev |
| # with yarn | ||
| $ yarn tauri dev | ||
| # with npm | ||
| $ npm run tauri dev |
| # with yarn | ||
| $ yarn tauri dev | ||
| # with npm | ||
| $ npm run tauri dev |
0eb924d to
40b2f49
Compare
|
Judging from this single example:
I don't think this is something that needs changes inside tauri right? Aren't we just talking about this: npm run tauri android android-studio-script -- --target aarch64(note the extra I mean, this is an issue with all commands (including desktop ones) so wouldn't we just make it inconsistent with this change? Sorry if i'm missing something obvious here. |
|
@FabianLars Mobile is special:
For desktop, it is simple to add But mobile platform is different: the command |
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information
If use
npm run tauri android initfor generating Android project, we will get some error like this whenrun dev:Executed commandis:
NPM will consume argument
--target, then passandroid android-studio-script aarch64to tauri.When using npm, we should use
--for passing args into tauri.Instead, we should use
npm run tauri -- android android-studio-script --target aarch64.The minimum case is
npm run tauri -vwhich will output NPM version.I have tested with
pnpmandyarn,Also see npm/npm#5518