Skip to content

Commit

Permalink
fix(cli): revert metadata.json field rename from #6795
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed May 22, 2023
1 parent 5ec6353 commit 9264140
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .scripts/covector/sync-cli-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const metadata = JSON.parse(readFileSync(filePath, 'utf-8'))
// set field version
let version
if (packageNickname === '@tauri-apps/cli') {
version = inc(metadata[packageNickname].version)
metadata[packageNickname].version = version
version = inc(metadata['cli.js'].version)
metadata['cli.js'].version = version
} else {
version = inc(metadata[packageNickname])
metadata[packageNickname] = version
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@tauri-apps/cli": {
"cli.js": {
"version": "1.3.1",
"node": ">= 10.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/src/info/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct JsCliVersionMetadata {
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VersionMetadata {
#[serde(rename = "@tauri-apps/cli")]
#[serde(rename = "cli.js")]
js_cli: JsCliVersionMetadata,
}

Expand Down

0 comments on commit 9264140

Please sign in to comment.