@tauri-apps/cli
Advanced tools
Comparing version
{ | ||
"name": "@tauri-apps/cli", | ||
"version": "2.0.0-alpha.16", | ||
"version": "2.0.0-alpha.17", | ||
"description": "Command line interface for building Tauri apps", | ||
@@ -45,3 +45,3 @@ "funding": { | ||
"fs-extra": "11.1.1", | ||
"jest": "29.5.0", | ||
"jest": "29.7.0", | ||
"jest-transform-toml": "1.0.0", | ||
@@ -51,4 +51,3 @@ "prettier": "2.8.8" | ||
"resolutions": { | ||
"json5": "2.2.3", | ||
"semver": ">=7.5.2" | ||
"json5": "2.2.3" | ||
}, | ||
@@ -73,15 +72,14 @@ "engines": { | ||
}, | ||
"dependencies": {}, | ||
"optionalDependencies": { | ||
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.16", | ||
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.16" | ||
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.17", | ||
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.17" | ||
} | ||
} |
@@ -22,3 +22,3 @@ # @tauri-apps/cli | ||
## This module | ||
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, and `yarn`, this library provides a node.js runner for common tasks when using Tauri, like `yarn tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/tooling/cli). | ||
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, `yarn`, and `bun`, this library provides a node.js runner for common tasks when using Tauri, like `yarn tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/tooling/cli). | ||
@@ -25,0 +25,0 @@ To learn more about the details of how all of these pieces fit together, please consult this [ARCHITECTURE.md](https://github.com/tauri-apps/tauri/blob/dev/ARCHITECTURE.md) document. |
10
tauri.js
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
const [bin, script, ...arguments] = process.argv | ||
const [bin, script, ...args] = process.argv | ||
const binStem = path.parse(bin).name.toLowerCase() | ||
@@ -24,3 +24,3 @@ | ||
// Some distribution still use "nodejs" as the binary name. | ||
else if (binStem.match(/(nodejs|node)\-?([0-9]*)*$/g)) { | ||
else if (binStem.match(/(nodejs|node|bun)\-?([0-9]*)*$/g)) { | ||
const managerStem = process.env.npm_execpath | ||
@@ -37,3 +37,3 @@ ? path.parse(process.env.npm_execpath).name.toLowerCase() | ||
// Yarn and pnpm have the same stem name as their bin. | ||
// Yarn, pnpm, and bun have the same stem name as their bin. | ||
// We assume all unknown package managers do as well. | ||
@@ -54,8 +54,8 @@ default: | ||
// We don't know what started it, assume it's already stripped. | ||
arguments.unshift(bin) | ||
args.unshift(bin) | ||
} | ||
cli.run(arguments, binName).catch((err) => { | ||
cli.run(args, binName).catch((err) => { | ||
cli.logError(err.message) | ||
process.exit(1) | ||
}) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
185272
2.51%2744
2.12%