@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
11 lines • 608 B
JavaScript
import { createRequire } from 'node:module';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import runValidate from "./runValidate.mjs";
import runBrowser from "./runBrowser.mjs";
function getVersion() {
return createRequire(import.meta.url)('../../package.json').version;
}
yargs().scriptName('docs-infra').usage('$0 <command> [args]').command(runValidate).command(runBrowser).demandCommand(1, 'You need at least one command before moving on').strict().help()
// MUI_VERSION is set through the code-infra build command.
.version("0.11.1" || getVersion()).parse(hideBin(process.argv));