Skip to content

Commit

Permalink
feat(script): Update scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
walkthunder committed Aug 6, 2023
1 parent 06481f2 commit 231fc13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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, '\t'))
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, '\t'))
writeFileSync('versions.json', JSON.stringify(versions, null, '4'))
11 changes: 1 addition & 10 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
{
"id": "invio",
"name": "Invio",
"version": "0.3.4",
"minAppVersion": "0.13.21",
"description": "Export docs as websites and deploy them to AWS S3 or compatible COS. Invio streamlines the process of publishing, enabling users to easily share their work online.",
"author": "frontend-engineering",
"authorUrl": "https://github.com/frontend-engineering",
"isDesktopOnly": true
}
{"id":"invio","name":"Invio","version":"0.3.3","minAppVersion":"0.13.21","description":"Export docs as websites and deploy them to AWS S3 or compatible COS. Invio streamlines the process of publishing, enabling users to easily share their work online.","author":"frontend-engineering","authorUrl":"https://github.com/frontend-engineering","isDesktopOnly":true}

0 comments on commit 231fc13

Please sign in to comment.