@vnejs/monorepo 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/monorepo",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Monorepo tooling for @vnejs",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -2,14 +2,7 @@ const pLimit = require("p-limit").default;
2
2
 
3
3
  const PARALLEL_WINDOW_ENDED = "Parallel window ended; concurrency set to 1";
4
4
 
5
- const schedulePackages = async ({
6
- packages,
7
- runFn,
8
- concurrency = 1,
9
- parallelMs,
10
- firstSerial = false,
11
- log = console.log,
12
- }) => {
5
+ const schedulePackages = async ({ packages, runFn, concurrency = 1, parallelMs, firstSerial = false, log = console.log }) => {
13
6
  if (!Number.isInteger(concurrency) || concurrency < 1) {
14
7
  throw new Error("concurrency must be an integer >= 1");
15
8
  }
@@ -42,9 +35,7 @@ const schedulePackages = async ({
42
35
  }
43
36
 
44
37
  try {
45
- const results = await Promise.allSettled(
46
- remaining.map((pkg, offset) => limit(() => runFn(pkg, startIndex + offset))),
47
- );
38
+ const results = await Promise.allSettled(remaining.map((pkg, offset) => limit(() => runFn(pkg, startIndex + offset))));
48
39
 
49
40
  const failed = results.filter((result) => result.status === "rejected");
50
41