chore(deps): update babel monorepo [skip netlify] (#3410)

* chore(deps): update babel monorepo [skip netlify]

* refactor: cli

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
renovate[bot]
2022-03-29 17:10:42 +09:00
committed by GitHub
parent b1311aff1b
commit 126fcf3a78
2 changed files with 645 additions and 608 deletions

14
cli.js
View File

@@ -35,12 +35,7 @@ program.option("-f, --macro-file <path>",
.option("-i, --input <path>", "Read LaTeX input from the given file.")
.option("-o, --output <path>", "Write html output to the given file.");
if (require.main !== module) {
module.exports = program;
return;
}
const options = program.parse(process.argv).opts();
let options;
function readMacros() {
if (options.macroFile) {
@@ -109,4 +104,9 @@ function writeOutput(input) {
}
}
readMacros();
if (require.main !== module) {
module.exports = program;
} else {
options = program.parse(process.argv).opts();
readMacros();
}

1239
yarn.lock

File diff suppressed because it is too large Load Diff