Skip to content

Commit

Permalink
[core] Use fs instead of fs-extra in script utils (#43234)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai authored Aug 9, 2024
1 parent 6774900 commit 34add58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils.mjs
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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) {
Expand Down

0 comments on commit 34add58

Please sign in to comment.