Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Migrate registry util script from JS to TS #23976

Merged
merged 21 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b050b1f
Merge pull request #23852 from storybookjs/shilman/fix-story-indexer
shilman Aug 16, 2023
3c34b0a
Write changelog for 7.3.1
storybook-bot Aug 16, 2023
a918f7d
Merge pull request #23842 from storybookjs/version-patch-from-7.3.0
shilman Aug 16, 2023
2d5bbb1
Bump version from "7.3.0" to "7.3.1" [skip ci]
storybook-bot Aug 16, 2023
b83bf34
Update ./docs/versions/next.json for v7.4.0-alpha.0
storybook-bot Aug 16, 2023
2e0da32
Merge pull request #23839 from storybookjs/yann/add-parallelism-count…
yannbf Aug 16, 2023
4b7b27b
Merge pull request #23856 from storybookjs/kasper/fix-template-file
kasperpeulen Aug 16, 2023
610ea31
Merge pull request #23857 from storybookjs/version-patch-from-7.3.1
kasperpeulen Aug 16, 2023
fa43dbb
Update README.md
shilman Aug 18, 2023
7e6206a
Merge pull request #23882 from storybookjs/revert-23496-norbert/react…
yannbf Aug 18, 2023
99ff330
Write changelog for 7.3.2
storybook-bot Aug 18, 2023
139cde4
Merge pull request #23884 from storybookjs/version-patch-from-7.3.1
shilman Aug 18, 2023
7247933
Bump version from "7.3.1" to "7.3.2" [skip ci]
storybook-bot Aug 18, 2023
4d509a5
Update ./docs/versions/next.json for v7.4.0-alpha.1
storybook-bot Aug 23, 2023
20111e4
removed.
mastrzyz Aug 23, 2023
da3a420
Update ./docs/versions/next.json for v7.4.0-alpha.2
storybook-bot Aug 25, 2023
01f18e3
MERGED
mastrzyz Aug 28, 2023
3ca6b45
Merged with next
mastrzyz Aug 28, 2023
b652cd1
MERGED
mastrzyz Aug 28, 2023
be61d0a
MERGED
mastrzyz Aug 28, 2023
d548caa
added
mastrzyz Aug 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/run-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import pLimit from 'p-limit';
import type { Server } from 'http';
import { mkdir } from 'fs/promises';
import { PACKS_DIRECTORY } from './utils/constants';
// @ts-expect-error (Converted from ts-ignore)

import { maxConcurrentTasks } from './utils/concurrency';
import { listOfPackages } from './utils/list-packages';

Expand Down
27 changes: 0 additions & 27 deletions scripts/utils/concurrency.js

This file was deleted.

9 changes: 9 additions & 0 deletions scripts/utils/concurrency.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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, arbitrary limited to 15 to not overload CI executors.
* @type {number}
*/
export const maxConcurrentTasks = Math.min(Math.max(1, os.cpus().length - 1), 15);