Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
457 bytes
|
Rev | Line | |
---|
[6a3a178] | 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.