We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853ed46 commit f825944Copy full SHA for f825944
.changes/change-pr-13253.md
@@ -0,0 +1,6 @@
1
+---
2
+"@tauri-apps/cli": patch:enhance
3
+"tauri-cli": patch:enhance
4
5
+
6
+Allow electron to run the CLI directly
packages/cli/tauri.js
@@ -20,7 +20,7 @@ if (globalThis.navigator?.userAgent?.includes('Deno')) {
20
}
21
// Even if started by a package manager, the binary will be NodeJS.
22
// Some distribution still use "nodejs" as the binary name.
23
-else if (binStem.match(/(nodejs|node|bun)\-?([0-9]*)*$/g)) {
+else if (binStem.match(/(nodejs|node|bun|electron)\-?([0-9]*)*$/g)) {
24
const managerStem = process.env.npm_execpath
25
? path.parse(process.env.npm_execpath).name.toLowerCase()
26
: null
0 commit comments