Fixup of scripts

This commit is contained in:
be5invis 2022-07-15 19:26:01 -07:00
parent e133c8e1b7
commit abb06e7231
3 changed files with 4 additions and 4 deletions

View file

@ -20,9 +20,9 @@ setTimeout(
async function main() {
const version = await GetLatestVersion();
const packageJson = await fs.readJson(PackageJsonPath);
const packageJson = JSON.parse(await fs.promises.readFile(PackageJsonPath));
packageJson.version = version;
await fs.writeJson(PackageJsonPath, packageJson, { spaces: 2 });
await fs.promises.writeFile(PackageJsonPath, JSON.stringify(packageJson, null, " ") + "\n");
}
async function GetLatestVersion() {