From 34add582c1a80be791f64ea0dfdc843f7fa26c67 Mon Sep 17 00:00:00 2001 From: Diego Andai Date: Fri, 9 Aug 2024 12:25:53 -0400 Subject: [PATCH] [core] Use fs instead of fs-extra in script utils (#43234) --- scripts/utils.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {