Skip to content

Commit

Permalink
tools: Add sync-version.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Mar 11, 2022
1 parent 69b16c5 commit 8b20bd4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/sync-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node

const fs = require('fs');

const packageInfo = JSON.parse(fs.readFileSync('package.json'));
const appInfo = JSON.parse(fs.readFileSync('appinfo.json'));

fs.writeFileSync(
'appinfo.json',
`${JSON.stringify(
{
...appInfo,
version: packageInfo.version
},
null,
2
)}\n`
);

0 comments on commit 8b20bd4

Please sign in to comment.