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",