We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 464a34b commit 8ac5388Copy full SHA for 8ac5388
scripts/utils.mjs
@@ -1,6 +1,6 @@
1
import path from 'path';
2
import url from 'url';
3
-import fse from 'fs-extra';
+import fs from 'fs';
4
5
/**
6
* Returns the full path of the root directory of this repository.
@@ -15,8 +15,8 @@ export function getWorkspaceRoot() {
15
16
* Returns the version and destructured values of the version as env variables to be replaced.
17
*/
18
-export async function getVersionEnvVariables() {
19
- const packageJsonData = await fse.readFile(path.resolve('./package.json'), 'utf8');
+export function getVersionEnvVariables() {
+ const packageJsonData = fs.readFileSync(path.resolve('./package.json'), 'utf8');
20
const { version = null } = JSON.parse(packageJsonData);
21
22
if (!version) {
0 commit comments