mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
36869a4350
The version field is now stored in the main `package.json` file rather than in the base manifest. It is built into the final manifest during the build script. This makes it easier to communicate what the current version should be to our `auto-changelog` script. It's also generally a more conventional place to keep track of the version, even considering that we're not publishing to npm.
14 lines
370 B
JavaScript
14 lines
370 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const { version } = require('../package.json');
|
|
|
|
const changelog = fs.readFileSync(
|
|
path.join(__dirname, '..', 'CHANGELOG.md'),
|
|
'utf8',
|
|
);
|
|
|
|
const log = changelog.split(version)[1].split('##')[0].trim();
|
|
const msg = `*MetaMask ${version}* now published! It should auto-update soon!\n${log}`;
|
|
|
|
console.log(msg);
|