mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
678 B
678 B
tauri, tauri-build, tauri-codegen, tauri-macros, tauri-utils, cli.rs
| tauri | tauri-build | tauri-codegen | tauri-macros | tauri-utils | cli.rs |
|---|---|---|---|---|---|
| patch | patch | patch | patch | patch | patch |
Adds support for using JSON5 format for the tauri.conf.json file, along with also supporting the .json5 extension.
Here is the logic flow that determines if JSON or JSON5 will be used to parse the config:
- Check if
tauri.conf.jsonexists a. Parse it withserde_jsonb. Parse it withjson5ifserde_jsonfails c. Return originalserde_jsonerror if all above steps failed - Check if
tauri.conf.json5exists a. Parse it withjson5b. Return error if all above steps failed - Return error if all above steps failed