From 6b6949d441fae2d9a39ce1dce6968da45dcabffe Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 5 Aug 2022 23:14:54 +0000 Subject: [PATCH] PR-645309: fix npx. --- bin/cli.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index f732234..df2b64c 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -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); diff --git a/package.json b/package.json index 84c674e..616217f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.43", + "version": "3.0.44", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index",