Simplify logic

This commit is contained in:
Bruno Bernardino 2022-01-02 21:17:43 +00:00
parent 5b9de792f7
commit 46f17f651f
No known key found for this signature in database
GPG Key ID: D1B0A69ADD114ECE
1 changed files with 1 additions and 4 deletions

View File

@ -23,10 +23,7 @@ const tauriUpdate = {
},
};
const packageFileContents = readFileSync(packageFilePath, "utf-8");
const package = JSON.parse(packageFileContents);
const { version } = package;
const { version } = require(packageFilePath);
const now = new Date().toISOString();
tauriUpdate.name = `v${version}`;