Initial work of ESM transformation
This commit is contained in:
parent
2472c9cff2
commit
b8205a63aa
303 changed files with 1959 additions and 2450 deletions
|
@ -1,38 +0,0 @@
|
|||
"use strict";
|
||||
|
||||
const fs = require("fs");
|
||||
const { parseVariantsData } = require("./variants-data");
|
||||
const { parseLigationData } = require("./ligation-data");
|
||||
const { getCharMapAndSupportedLanguageList } = require("./supported-languages");
|
||||
|
||||
const version = require("../../package.json").version;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
module.exports = async function main(argv) {
|
||||
const variantsData = await parseVariantsData();
|
||||
const ligationData = await parseLigationData();
|
||||
const cl = await getCharMapAndSupportedLanguageList(
|
||||
argv.charMapPath,
|
||||
argv.charMapItalicPath,
|
||||
argv.charMapObliquePath
|
||||
);
|
||||
await fs.promises.writeFile(
|
||||
argv.exportPathMeta,
|
||||
JSON.stringify(
|
||||
{
|
||||
version,
|
||||
variantsData,
|
||||
ligationData: {
|
||||
cherry: ligationData.cherry,
|
||||
samplesNarrow: ligationData.samplesNarrow,
|
||||
nonMergeSets: ligationData.nonMergeSets
|
||||
}
|
||||
},
|
||||
{ spaces: 2 }
|
||||
)
|
||||
);
|
||||
await fs.promises.writeFile(
|
||||
argv.exportPathCov,
|
||||
JSON.stringify({ version, ...cl }, { spaces: 2 })
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue