Skip to content

Commit

Permalink
Use spaces for indentation when versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonbox committed Oct 1, 2024
1 parent 2a53114 commit b09c9fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"formatter": {
"enabled": true,
"indentStyle": "space",
"ignore": ["main.js"]
"ignore": ["main.js", "package.json"]
},
"organizeImports": {
"ignore": ["main.js"],
Expand Down
4 changes: 2 additions & 2 deletions version-bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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`);

0 comments on commit b09c9fb

Please sign in to comment.