mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-04 18:58:39 +00:00
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:
14
cli.js
14
cli.js
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user