From 4e2ab15f8209469b8644a184230f99754eb53ab6 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 5 Aug 2022 13:57:38 +0000 Subject: [PATCH] PR-689091: fix npx. --- bin/cli.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index f63970a..c966663 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -28,7 +28,8 @@ console.log(`Cloning the repository with name ${repoName}`); const checkedOut = runCommand(gitCheckoutCommand); if(!checkedOut) process.exit(-1); -const actualVersion = runCommandWithOutput(`cd ${repoName} && node -p "require('./package.json').version"`).replace(/(\r\n|\n|\r)/gm, ""); +const actualVersion = runCommandWithOutput(`cd ${repoName} && node -p "require('./package.json').version"`) +const actualVersionTrimmed = actualVersion.trim() const installDepsCommand = `cd ${repoName} && npm install`; const cleanGitHistoryCommand = `cd ${repoName} && rm -rf .git && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"` diff --git a/package.json b/package.json index c6a9eb7..7e7394b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.35", + "version": "3.0.36", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index",