Rename the version property to firmwareVersion in package.json

This commit is contained in:
László Monda
2017-12-14 03:52:56 +01:00
parent 4393377365
commit 9b9e5ed1b5
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ config.fatal = true;
config.verbose = true; config.verbose = true;
const package = JSON.parse(fs.readFileSync(`${__dirname}/package.json`)); const package = JSON.parse(fs.readFileSync(`${__dirname}/package.json`));
const version = package.version; const version = package.firmwareVersion;
const releaseName = `uhk-firmware-${version}`; const releaseName = `uhk-firmware-${version}`;
const releaseDir = `${__dirname}/${releaseName}`; const releaseDir = `${__dirname}/${releaseName}`;
const modulesDir = `${releaseDir}/modules`; const modulesDir = `${releaseDir}/modules`;

View File

@@ -15,7 +15,7 @@
"commander": "^2.11.0", "commander": "^2.11.0",
"shelljs": "^0.7.8" "shelljs": "^0.7.8"
}, },
"version": "6.0.0", "firmwareVersion": "6.0.0",
"deviceProtocolVersion": "3.0.0", "deviceProtocolVersion": "3.0.0",
"moduleProtocolVersion": "3.0.0", "moduleProtocolVersion": "3.0.0",
"userConfigVersion": "4.0.0", "userConfigVersion": "4.0.0",