2021-12-17 18:58:25 +05:30
|
|
|
#!/usr/bin/env node
|
|
|
|
const fs = require("fs");
|
2022-01-12 21:44:52 +05:30
|
|
|
const appManifest = require("../../package.json");
|
|
|
|
const baseSDKManifest = require("./base-manifest.json");
|
|
|
|
/*
|
2022-02-26 12:42:00 +05:30
|
|
|
Need to leave typescript type definitions out until the
|
2022-01-12 22:11:00 +05:30
|
|
|
typescript conversion is complete and all imports in the d.ts files
|
|
|
|
exists.
|
|
|
|
```
|
|
|
|
"types": "types/lib.d.ts"
|
|
|
|
```
|
2022-01-12 21:44:52 +05:30
|
|
|
*/
|
2021-12-17 18:58:25 +05:30
|
|
|
const mergeOptions = require('merge-options');
|
|
|
|
|
|
|
|
const manifestExtension = {
|
|
|
|
devDependencies: undefined,
|
|
|
|
scripts: undefined,
|
|
|
|
};
|
2021-12-20 23:47:31 +05:30
|
|
|
|
|
|
|
const manifest = mergeOptions(appManifest, baseSDKManifest, manifestExtension);
|
2021-12-17 18:58:25 +05:30
|
|
|
const json = JSON.stringify(manifest, undefined, 2);
|
|
|
|
const outFile = process.argv[2];
|
|
|
|
fs.writeFileSync(outFile, json, {encoding: "utf8"});
|