mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(tauri.js/api/info): detect version shorthand for tauri crate
This commit is contained in:
@@ -80,6 +80,9 @@ function printAppInfo(tauriDir: string): void {
|
||||
const tauriVersion = (): string => {
|
||||
const tauri = tomlContents.dependencies.tauri
|
||||
if (tauri) {
|
||||
if (typeof tauri === 'string') {
|
||||
return chalk.green(tauri)
|
||||
}
|
||||
if (tauri.version) {
|
||||
return chalk.green(tauri.version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user