From b09c9fba787692f2c1047d6fd4c01433eaebeb85 Mon Sep 17 00:00:00 2001 From: Howard Wilson Date: Tue, 1 Oct 2024 12:27:12 +0200 Subject: [PATCH] Use spaces for indentation when versioning --- biome.json | 2 +- version-bump.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/biome.json b/biome.json index ebcbc51..dac6a61 100644 --- a/biome.json +++ b/biome.json @@ -12,7 +12,7 @@ "formatter": { "enabled": true, "indentStyle": "space", - "ignore": ["main.js"] + "ignore": ["main.js", "package.json"] }, "organizeImports": { "ignore": ["main.js"], diff --git a/version-bump.mjs b/version-bump.mjs index ee8fa9f..9891221 100644 --- a/version-bump.mjs +++ b/version-bump.mjs @@ -6,9 +6,9 @@ const targetVersion = process.env.npm_package_version; const manifest = JSON.parse(readFileSync("manifest.json", "utf8")); const { minAppVersion } = manifest; manifest.version = targetVersion; -writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t")); +writeFileSync("manifest.json", `${JSON.stringify(manifest, null, 2)}\n`); // update versions.json with target version and minAppVersion from manifest.json const versions = JSON.parse(readFileSync("versions.json", "utf8")); versions[targetVersion] = minAppVersion; -writeFileSync("versions.json", JSON.stringify(versions, null, "\t")); +writeFileSync("versions.json", `${JSON.stringify(versions, null, 2)}\n`);