PR-645309: fix npx.

This commit is contained in:
2022-08-05 23:14:54 +00:00
parent f9518c12b6
commit 6b6949d441
2 changed files with 3 additions and 3 deletions

View File

@ -24,13 +24,13 @@ const runCommandWithOutput = command => {
}
}
const replaceTextOnFile = ({
const replaceTextOnFile = async ({
file,
textToBeReplaced,
textReplace,
arrOfObjectsBeReplaced
}) => {
fs.readFileSync(file, 'utf8', function (err,data) {
await fs.readFile(file, 'utf8', function (err,data) {
let result
if (err) {
return console.error(err);