()
| 788 | } |
| 789 | |
| 790 | async function buildBabelParserDts() { |
| 791 | const parserDts = "packages/babel-parser/typings/babel-parser.d.ts"; |
| 792 | await buildRollupDts( |
| 793 | "packages/babel-parser/typings/babel-parser.source.d.ts", |
| 794 | parserDts, |
| 795 | "// This file is auto-generated! Do not modify it directly.\n" + |
| 796 | "// Run `make bundle-babel-parser-dts` to re-generate it.\n" + |
| 797 | // @typescript-eslint/no-redundant-type-constituents can be removed once we drop the IF_BABEL_7 type |
| 798 | "/* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents */", |
| 799 | "packages/babel-parser" |
| 800 | ); |
| 801 | |
| 802 | patchErrorInfo(parserDts); |
| 803 | await buildRollupDts(parserDts, parserDts, "", "packages/babel-parser"); |
| 804 | fs.writeFileSync( |
| 805 | parserDts, |
| 806 | await formatCode(fs.readFileSync(parserDts, "utf8"), parserDts) |
| 807 | ); |
| 808 | } |
| 809 | |
| 810 | function* packagesIterator(exclude: Set<string>) { |
| 811 | for (const packageDir of ["packages", "codemods", "eslint"]) { |
no test coverage detected
searching dependent graphs…