diff --git a/scripts/utils.mjs b/scripts/utils.mjs index d0976a9d5d83da..4f0f37d49cf825 100644 --- a/scripts/utils.mjs +++ b/scripts/utils.mjs @@ -1,6 +1,6 @@ import path from 'path'; import url from 'url'; -import fse from 'fs-extra'; +import fs from 'fs/promises'; /** * Returns the full path of the root directory of this repository. @@ -16,7 +16,7 @@ export function getWorkspaceRoot() { * Returns the version and destructured values of the version as env variables to be replaced. */ export async function getVersionEnvVariables() { - const packageJsonData = await fse.readFile(path.resolve('./package.json'), 'utf8'); + const packageJsonData = await fs.readFile(path.resolve('./package.json'), 'utf8'); const { version = null } = JSON.parse(packageJsonData); if (!version) {