create-tauri
Advanced tools
Comparing version 4.5.4 to 4.5.5
@@ -23,3 +23,3 @@ #!/usr/bin/env node | ||
// Some distribution still use "nodejs" as the binary name. | ||
if (binStem.match(/(nodejs|node|bun)-*([0-9]*)*$/g)) { | ||
else if (binStem.match(/(nodejs|node|bun)-*([0-9]*)*$/g)) { | ||
const managerStem = process.env.npm_execpath | ||
@@ -56,7 +56,6 @@ ? path.parse(process.env.npm_execpath).name.toLowerCase() | ||
// adapted from https://github.com/vitejs/vite/blob/34826aae015ed16dc9b9096c0f778154ca6981a6/packages/create-vite/src/index.ts#L513 | ||
function pkgManagerFromUserAgent(userAgent) { | ||
if (!userAgent) return undefined; | ||
return userAgent.split(" ")[0]?.split("/")[0]; | ||
} | ||
const pkgManager = pkgManagerFromUserAgent(process.env.npm_config_user_agent); | ||
const userAgent = | ||
process.env.npm_config_user_agent ?? globalThis.navigator?.userAgent; | ||
const pkgManager = userAgent?.split(" ")[0]?.split("/")[0].toLocaleLowerCase(); | ||
cli.run(args, binName, pkgManager); |
{ | ||
"name": "create-tauri", | ||
"version": "4.5.4", | ||
"version": "4.5.5", | ||
"description": "Rapidly scaffold out a new tauri app project.", | ||
@@ -59,14 +59,14 @@ "funding": { | ||
"optionalDependencies": { | ||
"create-tauri-app-win32-x64-msvc": "4.5.4", | ||
"create-tauri-app-darwin-x64": "4.5.4", | ||
"create-tauri-app-linux-x64-gnu": "4.5.4", | ||
"create-tauri-app-darwin-universal": "4.5.4", | ||
"create-tauri-app-darwin-arm64": "4.5.4", | ||
"create-tauri-app-linux-arm64-gnu": "4.5.4", | ||
"create-tauri-app-linux-arm64-musl": "4.5.4", | ||
"create-tauri-app-linux-arm-gnueabihf": "4.5.4", | ||
"create-tauri-app-linux-x64-musl": "4.5.4", | ||
"create-tauri-app-win32-ia32-msvc": "4.5.4", | ||
"create-tauri-app-win32-arm64-msvc": "4.5.4" | ||
"create-tauri-app-win32-x64-msvc": "4.5.5", | ||
"create-tauri-app-darwin-x64": "4.5.5", | ||
"create-tauri-app-linux-x64-gnu": "4.5.5", | ||
"create-tauri-app-darwin-universal": "4.5.5", | ||
"create-tauri-app-darwin-arm64": "4.5.5", | ||
"create-tauri-app-linux-arm64-gnu": "4.5.5", | ||
"create-tauri-app-linux-arm64-musl": "4.5.5", | ||
"create-tauri-app-linux-arm-gnueabihf": "4.5.5", | ||
"create-tauri-app-linux-x64-musl": "4.5.5", | ||
"create-tauri-app-win32-ia32-msvc": "4.5.5", | ||
"create-tauri-app-win32-arm64-msvc": "4.5.5" | ||
} | ||
} |
@@ -32,2 +32,8 @@ <img src="https://github.com/tauri-apps/create-tauri-app/raw/dev/.github/splash.png" alt="Rapidly scaffold out a new Tauri app project." /> | ||
### Deno | ||
```bash | ||
deno run -A npm:create-tauri-app | ||
``` | ||
## Bun: | ||
@@ -45,11 +51,11 @@ | ||
# npm 6.x | ||
npm create tauri-app@latest my-tauri-app --template svelte --manager pnpm | ||
npm create tauri-app@latest my-tauri-app --template svelte | ||
# npm 7+, extra double-dash is needed: | ||
npm create tauri-app@latest my-tauri-app -- --template svelte --manager pnpm | ||
npm create tauri-app@latest my-tauri-app -- --template svelte | ||
# yarn | ||
yarn create tauri-app my-tauri-app --template svelte --manager pnpm | ||
yarn create tauri-app my-tauri-app --template svelte | ||
# pnpm | ||
pnpm create tauri-app my-tauri-app --template svelte --manager pnpm | ||
pnpm create tauri-app my-tauri-app --template svelte | ||
# Bun | ||
bunx create-tauri-app my-tauri-app --template svelte --manager bun | ||
bunx create-tauri-app my-tauri-app --template svelte | ||
``` | ||
@@ -67,2 +73,4 @@ | ||
- `react-ts` | ||
- `preact` | ||
- `preact-ts` | ||
- `solid` | ||
@@ -69,0 +77,0 @@ - `solid-ts` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98612
96
367