Skip to content

Commit

Permalink
Merge pull request #12998 from storybookjs/fix/exclude-testfixtures
Browse files Browse the repository at this point in the history
Addon-docs: Exclude testfixtures from package
  • Loading branch information
shilman committed Nov 4, 2020
2 parents ff57dd1 + 0045209 commit 9338ff6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion addons/docs/package.json
Expand Up @@ -32,7 +32,8 @@
"README.md",
"*.js",
"*.d.ts",
"ts3.4/**/*"
"ts3.4/**/*",
"!__testfixtures__"
],
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
3 changes: 2 additions & 1 deletion lib/codemod/package.json
Expand Up @@ -22,7 +22,8 @@
"README.md",
"*.js",
"*.d.ts",
"ts3.4/**/*"
"ts3.4/**/*",
"!__testfixtures__"
],
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/concurrency.js
Expand Up @@ -2,10 +2,10 @@ const os = require('os');

/**
* The maximum number of concurrent tasks we want to have on some CLI and CI tasks.
* The amount of CPUS minus one.
* The amount of CPUS minus one, arbitrary limited to 15 to not overload CI executors.
* @type {number}
*/
const maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
const maxConcurrentTasks = Math.min(Math.max(1, os.cpus().length - 1), 15);

/**
* Use a simple round robin to filter input data according to the CI node currently running the script
Expand Down

0 comments on commit 9338ff6

Please sign in to comment.