Skip to content

Commit

Permalink
fix: use concurrency 1 while generating yarn disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
matzeeable committed Mar 31, 2020
1 parent f2e0cbc commit c552401
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions common/Gruntfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ function applyDefaultRunnerConfiguration(grunt: IGrunt) {
*/
grunt.registerTask("yarn:disclaimer", () => {
const cwd = process.cwd();
execSync("yarn --silent licenses generate-disclaimer --production > LICENSE_3RD_PARTY_JS.md", {
cwd
});
execSync(
// Use one concurrency network request https://github.com/yarnpkg/yarn/issues/6312#issuecomment-430674746
"yarn --silent licenses generate-disclaimer --production --network-concurrency 1 > LICENSE_3RD_PARTY_JS.md",
{
cwd
}
);
});

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"workspace:compose-files": "find plugins/*/devops packages/*/devops | grep \"^\\(plugins\\|packages\\)/.*/devops/docker-compose/docker-compose\\.\\(yml\\|$COMPOSE_CONTEXT\\)\" | sed -n -e 'H;${x;s/\\n/:.\\//g;s/^ //;p;}' | sed -e 's/:*$//' | sed -e 's/^://' ",
"workspace:slugs": "find plugins/* -maxdepth 0 2>/dev/null | sed -n -e 'H;${x;s/\\n/ /g;s/^ //;p;}' | sed 's/plugins\\///g'",
"exposedotenv": "env $(cat ./common/.env-default | xargs) env $(cat ./.env 2>/dev/null | xargs)",
"preversion": "WORKSPACE_COMMAND=\"yarn --silent grunt composer:disclaimer\" yarn --silent workspace:concurrently && WORKSPACE_COMMAND=\"yarn --silent grunt yarn:disclaimer\" yarn --silent workspace:concurrently && git add \"*LICENSE_3RD_PARTY*\""
"preversion": "WORKSPACE_COMMAND=\"yarn --silent grunt composer:disclaimer\" yarn --silent workspace:concurrently && lerna exec --concurrency 1 -- yarn grunt yarn:disclaimer && git add \"*LICENSE_3RD_PARTY*\""
},
"lerna": {
"npmClient": "yarn",
Expand Down

0 comments on commit c552401

Please sign in to comment.