mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-18 20:08:32 -06:00
PR-645309: fix npx.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user