🤖 Merge PR #60664 [DT Infrastructure] Fix failing jobs since change from CJS to ESM by @MysteryBlokHed

* Fix `fs-extra` import in update-codeowners.js

* Fix `fs-extra` import in ghostbuster.js
This commit is contained in:
Adam Thompson-Sharpe
2022-06-06 17:09:18 -04:00
committed by GitHub
parent 8efc27c9d6
commit 84ceb576a8
2 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
// @ts-check
import { flatMap, mapDefined } from "@definitelytyped/utils";
import * as os from "node:os";
import { writeFileSync, readFileSync, readdirSync, existsSync } from "fs-extra";
import fsExtra from 'fs-extra';
const { writeFileSync, readFileSync, readdirSync, existsSync } = fsExtra;
import hp from "@definitelytyped/header-parser";
import { Octokit } from "@octokit/core";

View File

@@ -2,7 +2,8 @@ import * as cp from 'node:child_process';
import * as os from 'node:os';
import { AllPackages, getDefinitelyTyped, parseDefinitions, clean } from '@definitelytyped/definitions-parser';
import { loggerWithErrors } from '@definitelytyped/utils';
import { writeFile } from 'fs-extra';
import fsExtra from 'fs-extra';
const { writeFile } = fsExtra;
async function main() {
const options = { definitelyTypedPath: '.', progress: false, parseInParallel: true };