mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
Add one more deps "@typescript-eslint/utils" to top level to be used in our own custom rules (also needed override if I didn't). Bug: none Change-Id: I130415d1ec5f096ca51200df3eb688dadd963d0f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6343232 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
11 lines
473 B
JavaScript
11 lines
473 B
JavaScript
// TODO: consolidate on using a helpers file at some point in the future, which
|
|
// is the approach currently used to export Parser and applyExtends for ESM:
|
|
import pkg from './build/index.cjs';
|
|
const {applyExtends, cjsPlatformShim, Parser, processArgv, Yargs} = pkg;
|
|
Yargs.applyExtends = (config, cwd, mergeExtends) => {
|
|
return applyExtends(config, cwd, mergeExtends, cjsPlatformShim);
|
|
};
|
|
Yargs.hideBin = processArgv.hideBin;
|
|
Yargs.Parser = Parser;
|
|
export default Yargs;
|