fix(tauri.js/api/info): detect version shorthand for tauri crate
@@ -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)
}
