Skip to content

Commit

Permalink
fix(bump): Fix script error.
Browse files Browse the repository at this point in the history
  • Loading branch information
walkthunder committed Aug 6, 2023
1 parent 500430b commit 7cf14c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ console.log(`Bumping version to ${targetVersion}`)
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'))
const { minAppVersion } = manifest
manifest.version = targetVersion
writeFileSync('manifest.json', JSON.stringify(manifest, null, '4'))
writeFileSync('manifest.json', JSON.stringify(manifest, null, 4))

// 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, '4'))
writeFileSync('versions.json', JSON.stringify(versions, null, 4))

0 comments on commit 7cf14c2

Please sign in to comment.