1653a9265ecaf691ff3a987ea1e46487a860d8e79726ab16fb3d38af5ae84d71609730baa6a8ceefc1519f14069eced077ee2a55d80265a4f257a8ede3cce7 457 B

123456789
  1. // TODO: consolidate on using a helpers file at some point in the future, which
  2. // is the approach currently used to export Parser and applyExtends for ESM:
  3. const {applyExtends, cjsPlatformShim, Parser, Yargs, processArgv} = require('./build/index.cjs')
  4. Yargs.applyExtends = (config, cwd, mergeExtends) => {
  5. return applyExtends(config, cwd, mergeExtends, cjsPlatformShim)
  6. }
  7. Yargs.hideBin = processArgv.hideBin
  8. Yargs.Parser = Parser
  9. module.exports = Yargs