2021-12-17 14:28:25 +01:00
|
|
|
#!/usr/bin/env node
|
|
|
|
const fs = require("fs");
|
2021-12-20 19:17:31 +01:00
|
|
|
const appManifest = require("../../package.json")
|
|
|
|
const baseSDKManifest = require("./base-manifest.json")
|
2021-12-17 14:28:25 +01:00
|
|
|
const mergeOptions = require('merge-options');
|
|
|
|
|
|
|
|
const manifestExtension = {
|
|
|
|
devDependencies: undefined,
|
|
|
|
scripts: undefined,
|
|
|
|
};
|
2021-12-20 19:17:31 +01:00
|
|
|
|
|
|
|
const manifest = mergeOptions(appManifest, baseSDKManifest, manifestExtension);
|
2021-12-17 14:28:25 +01:00
|
|
|
const json = JSON.stringify(manifest, undefined, 2);
|
|
|
|
const outFile = process.argv[2];
|
|
|
|
fs.writeFileSync(outFile, json, {encoding: "utf8"});
|