Include version when building

This commit is contained in:
Asher
2019-07-10 18:10:39 -05:00
parent 09e3cfd881
commit 2fdf09e6e7
5 changed files with 43 additions and 31 deletions

View File

@ -3,6 +3,7 @@ const fs = require("fs");
const a = process.argv[2];
const b = process.argv[3];
const out = process.argv[4];
const json = JSON.parse(process.argv[5] || "{}");
const aJson = JSON.parse(fs.readFileSync(a));
const bJson = JSON.parse(fs.readFileSync(b));
@ -15,4 +16,5 @@ delete aJson.optionalDependencies;
fs.writeFileSync(out, JSON.stringify({
...aJson,
...bJson,
...json,
}, null, 2));