diff --git a/bin/cli.js b/bin/cli.js index 0babd1f..f63970a 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -28,7 +28,7 @@ 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"`) +const actualVersion = runCommandWithOutput(`cd ${repoName} && node -p "require('./package.json').version"`).replace(/(\r\n|\n|\r)/gm, ""); 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 b3e8f93..c6a9eb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.34", + "version": "3.0.35", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index",