From 0b65d4ec42c884a032eb260f9e14090d00d39dcd Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 5 Aug 2022 22:11:41 +0000 Subject: [PATCH] PR-896993: fix npx. --- bin/cli.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index 38e4144..510cf6c 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -85,7 +85,7 @@ const installedDeps = runCommand(installDepsCommand); if(!installedDeps) process.exit(-1); replaceTextOnFile({ - file: '../package.json', + file: `./${repoName}/package.json`, arrOfObjectsBeReplaced: [ { textToBeReplaced: `"bin": "./bin/cli.js",`, diff --git a/package.json b/package.json index 8dcb66a..99894ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.40", + "version": "3.0.41", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index",