fix(tauri.js/api/info): detect version shorthand for tauri crate

This commit is contained in:
chip
2020-05-22 14:42:37 -07:00
committed by GitHub
parent 96e73d67d8
commit 08f0417175

View File

@@ -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)
}