@tauri-apps/cli 2.0.0-alpha.1 → 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +197 -0
- package/Cargo.toml +9 -4
- package/README.md +2 -2
- package/build.rs +1 -1
- package/index.d.ts +4 -0
- package/index.js +21 -1
- package/jest.config.js +4 -0
- package/main.d.ts +4 -0
- package/main.js +4 -0
- package/package.json +20 -15
- package/schema.json +604 -1301
- package/src/lib.rs +1 -1
- package/tauri.js +5 -1
package/src/lib.rs
CHANGED
package/tauri.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
// SPDX-License-Identifier: MIT
|
|
6
|
+
|
|
3
7
|
const cli = require('./main')
|
|
4
8
|
const path = require('path')
|
|
5
9
|
|
|
@@ -16,7 +20,7 @@ if (bin === '@tauri-apps/cli') {
|
|
|
16
20
|
}
|
|
17
21
|
// Even if started by a package manager, the binary will be NodeJS.
|
|
18
22
|
// Some distribution still use "nodejs" as the binary name.
|
|
19
|
-
else if (binStem.match(/(nodejs|node)([
|
|
23
|
+
else if (binStem.match(/(nodejs|node)\-?([0-9]*)*$/g)) {
|
|
20
24
|
const managerStem = process.env.npm_execpath
|
|
21
25
|
? path.parse(process.env.npm_execpath).name.toLowerCase()
|
|
22
26
|
: null
|