MCPcopy
hub / github.com/babel/babel / buildBabelParserDts

Function buildBabelParserDts

Gulpfile.ts:790–808  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

788}
789
790async 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
810function* packagesIterator(exclude: Set<string>) {
811 for (const packageDir of ["packages", "codemods", "eslint"]) {

Callers 1

Gulpfile.tsFile · 0.85

Calls 3

patchErrorInfoFunction · 0.90
buildRollupDtsFunction · 0.85
formatCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…