Fixup of scripts
This commit is contained in:
parent
e133c8e1b7
commit
abb06e7231
3 changed files with 4 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue