Skip to content

Commit 8ac5388

Browse files
committed
Use fs instead of fs-extra
1 parent 464a34b commit 8ac5388

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/utils.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import url from 'url';
3-
import fse from 'fs-extra';
3+
import fs from 'fs';
44

55
/**
66
* Returns the full path of the root directory of this repository.
@@ -15,8 +15,8 @@ export function getWorkspaceRoot() {
1515
/**
1616
* Returns the version and destructured values of the version as env variables to be replaced.
1717
*/
18-
export async function getVersionEnvVariables() {
19-
const packageJsonData = await fse.readFile(path.resolve('./package.json'), 'utf8');
18+
export function getVersionEnvVariables() {
19+
const packageJsonData = fs.readFileSync(path.resolve('./package.json'), 'utf8');
2020
const { version = null } = JSON.parse(packageJsonData);
2121

2222
if (!version) {

0 commit comments

Comments
 (0)