Skip to content

Commit 82046ba

Browse files
committed
fix: detect Tauri.toml file
1 parent 0f48a7c commit 82046ba

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import tauri from "vite-plugin-tauri"
1111
```
1212

13+
- Detect `Tauri.toml` file when detecting if there is a Tauri project is initialized or not.
14+
1315
# [3.0.1](https://github.com/amrbashir/vite-plugin-tauri/compare/v3.0.2...v3.0.1) (2022-10-1)
1416

1517
### What's Changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function getTauriConfPath(): string | null {
66
const tauriDepthEnv = process.env.TAURI_PATH_DEPTH;
77
const deep = tauriDepthEnv ? parseInt(tauriDepthEnv) : 3;
88

9-
return fg.sync("**/tauri.conf.(json|json5)", {
9+
return fg.sync("**/(tauri.conf.(json|json5)|Tauri.toml)", {
1010
absolute: true,
1111
unique: true,
1212
ignore: ["node_modules/**", "target/**"],

0 commit comments

Comments
 (0)