Merge pull request #48 from aleleba/PR-645309

PR-645309: fix npx.
This commit is contained in:
Alejandro Lembke Barrientos 2022-08-05 17:16:10 -06:00 committed by GitHub
commit dac561b8a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);

View File

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