From ac932d5283a7727173b7c91a9b0c69cb8f28ca90 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 5 Aug 2022 14:02:02 +0000 Subject: [PATCH] PR-153890: 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 c966663..22caac1 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -40,7 +40,7 @@ const deleteBinCommand = `cd ${repoName} && sed -i 's+"bin": "./bin/cli.js",++g' const deleteBinCommandWindows = `cd ${repoName} && copy package.json package2.json && del package.json && type package2.json | findstr /v cli.js > package.json && del package2.json` const deleteBinCommandApple = `cd ${repoName} && sed -i .copy 's+"bin": "./bin/cli.js",++g' package.json && sed -i .copy '/^[[:space:]]*$/d' package.json && rm -rf package.json.copy` -const replaceNewVersionCommand = `cd ${repoName} && sed -i 's+"version": "${actualVersion}",+"version": "0.0.1",+g' package.json` +const replaceNewVersionCommand = `cd ${repoName} && sed -i 's+"version": "${actualVersionTrimmed}",+"version": "0.0.1",+g' package.json` const replaceNameAppCommand = `cd ${repoName} && sed -i 's+"name": "@aleleba/create-react-ssr",+"name": "${repoName}",+g' package.json` console.log(`Installing dependencies for ${repoName}`); diff --git a/package.json b/package.json index 7e7394b..ba1d342 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.36", + "version": "3.0.37", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index",