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

@ -13,7 +13,7 @@ const ModifiedSinceVersion = "2.x";
module.exports = async function main(argv) {
const out = new Output();
await GenerateChangeList(argv, out);
await fs.writeFile(argv.outputPath, out.buffer);
await fs.promises.writeFile(argv.outputPath, out.buffer);
};
async function GenerateChangeList(argv, out) {

View file

@ -43,7 +43,7 @@ const DownloadLinkPrefixNoVersion = `https://github.com/be5invis/Iosevka/release
async function GeneratePackageList(argv, out) {
const imagePrefix = `${ImagePrefixNoVersion}/v${argv.version}/images`;
const pkgShapesData = await fs.promises.readJson(argv.releasePackagesJsonPath);
const pkgShapesData = JSON.parse(await fs.promises.readFile(argv.releasePackagesJsonPath));
const DownloadLinkPrefix = `${DownloadLinkPrefixNoVersion}/v${argv.version}`;
out.log(`<table>`);

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() {