mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-16 07:08:32 +03:00
995de57a76
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
22 lines
678 B
Markdown
22 lines
678 B
Markdown
---
|
|
"tauri": patch
|
|
"tauri-build": patch
|
|
"tauri-codegen": patch
|
|
"tauri-macros": patch
|
|
"tauri-utils": patch
|
|
"cli.rs": 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:
|
|
|
|
1. Check if `tauri.conf.json` exists
|
|
a. Parse it with `serde_json`
|
|
b. Parse it with `json5` if `serde_json` fails
|
|
c. Return original `serde_json` error if all above steps failed
|
|
2. Check if `tauri.conf.json5` exists
|
|
a. Parse it with `json5`
|
|
b. Return error if all above steps failed
|
|
3. Return error if all above steps failed
|