GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 68f9cf8f authored by Arlo Breault's avatar Arlo Breault

Bump package.json to match manifest.json

Trac: 34127
parent 4312865a
......@@ -145,6 +145,12 @@ task('node', 'build the node binary', function() {
console.log('Node prepared.');
});
var updateVersion = function(file, version) {
var obj = require(file)
obj.version = version;
writeFileSync(file, JSON.stringify(obj, null, 2), 'utf8');
};
task('pack-webext', 'pack the webextension for deployment', function() {
try {
execSync(`rm -f source.zip`);
......@@ -156,9 +162,8 @@ task('pack-webext', 'pack the webextension for deployment', function() {
execSync(`git submodule update --remote`);
var version = process.argv[3];
console.log(version);
var manifest = require('./webext/manifest.json')
manifest.version = version;
writeFileSync('./webext/manifest.json', JSON.stringify(manifest, null, 2), 'utf8');
updateVersion('./package.json', version);
updateVersion('./webext/manifest.json', version);
execSync(`git commit -am "bump version to ${version}"`);
try {
execSync(`git tag webext-${version}`);
......
{
"name": "snowflake-pt",
"version": "0.0.0-git",
"version": "0.3.0",
"description": "Snowflake is a WebRTC pluggable transport for Tor.",
"main": "build/snowflake.js",
"directories": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment