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