Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
victor871129 committed May 24, 2022
1 parent 605073e commit b4dbfaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mainApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const finalClean = (useReject, tempDirectory, actualIndex, maxLength) => {

const runScript = (useReject, tempDirectory, currentLibraryVersion, callbackMethod) => {
// http://www.tiernok.com/posts/2019/faster-npm-installs-during-ci/#warning-npm-ci-performance
exec(argumentNpm ? 'npm install --prefer-offline --no-audit' : 'yarn install', { cwd: tempDirectory }, (err) => {
exec(argumentNpm ? 'npm install --prefer-offline --no-audit' : 'yarn install', { cwd: tempDirectory, timeout: 1000000 }, (err) => {
if (err) return logClean(useReject, err, tempDirectory);

let hasError = false;
Expand All @@ -99,7 +99,7 @@ const runScript = (useReject, tempDirectory, currentLibraryVersion, callbackMeth
if (hasError) return;

try {
execSync(argumentNpm ? `npm run ${actualScript}` : `yarn run ${actualScript}`, { cwd: tempDirectory, stdio: 'ignore' });
execSync(argumentNpm ? `npm run ${actualScript}` : `yarn run ${actualScript}`, { cwd: tempDirectory, timeout: 1000000, stdio: 'ignore' });
// console.log(JSON.stringify(stdout))
finalClean(useReject, tempDirectory, scriptIndex, argumentRun.length);
} catch (error) {
Expand Down

0 comments on commit b4dbfaa

Please sign in to comment.