File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1- ---
2- " cli.js " : patch
3- ---
4-
5- Fix crash when nodejs binary has the version in its name, for example ` node18 `
1+ ---
2+ " cli.js " : patch
3+ ---
4+
5+ Fix crash when nodejs binary has the version in its name, for example ` node18 ` or when running through deno.
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ const binStem = path.parse(bin).name.toLowerCase()
1010// can successfully detect what command likely started the execution.
1111let binName
1212
13+ // deno run -A --unstable --node-modules-dir npm:@tauri-apps/cli
14+ if ( bin === '@tauri-apps/cli' ) {
15+ binName = '@tauri-apps/cli'
16+ }
1317// Even if started by a package manager, the binary will be NodeJS.
1418// Some distribution still use "nodejs" as the binary name.
15- if ( binStem . match ( / ( n o d e j s | n o d e ) ( [ 1 - 9 ] * ) * $ / g) ) {
19+ else if ( binStem . match ( / ( n o d e j s | n o d e ) ( [ 1 - 9 ] * ) * $ / g) ) {
1620 const managerStem = process . env . npm_execpath
1721 ? path . parse ( process . env . npm_execpath ) . name . toLowerCase ( )
1822 : null
You can’t perform that action at this time.
0 commit comments