yargs
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