PR-689091: fix npx.

This commit is contained in:
2022-08-05 13:57:38 +00:00
parent 4c0a6ffb8a
commit 4e2ab15f82
2 changed files with 3 additions and 2 deletions

View File

@ -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"`