1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00
metamask-extension/development/announcer.js
Mark Stacey 36869a4350
Migrate version from _base manifest to package.json (#11029)
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.
2021-05-10 14:16:03 -07:00

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);