diff --git a/scripts/ghostbuster.js b/scripts/ghostbuster.js index 2fbccc42a4..2b78f5f659 100644 --- a/scripts/ghostbuster.js +++ b/scripts/ghostbuster.js @@ -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"; diff --git a/scripts/update-codeowners.js b/scripts/update-codeowners.js index c5a4fd39cd..658bb2ed89 100644 --- a/scripts/update-codeowners.js +++ b/scripts/update-codeowners.js @@ -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 };