diff --git a/utils/run-parallel-batches/CHANGELOG.md b/utils/run-parallel-batches/CHANGELOG.md deleted file mode 100644 index cb82021925..0000000000 --- a/utils/run-parallel-batches/CHANGELOG.md +++ /dev/null @@ -1,41 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.16.0](https://github.com/lerna/lerna/compare/v3.15.0...v3.16.0) (2019-07-18) - - -### Features - -* **deps:** `p-map@^2.1.0` ([9e58394](https://github.com/lerna/lerna/commit/9e58394)) - - - - - -# [3.13.0](https://github.com/lerna/lerna/compare/v3.12.1...v3.13.0) (2019-02-15) - - -### Features - -* **meta:** Add `repository.directory` field to package.json ([aec5023](https://github.com/lerna/lerna/commit/aec5023)) -* **meta:** Normalize package.json `homepage` field ([abeb4dc](https://github.com/lerna/lerna/commit/abeb4dc)) - - - - - - -# [3.0.0](https://github.com/lerna/lerna/compare/v3.0.0-rc.0...v3.0.0) (2018-08-10) - -**Note:** Version bump only for package @lerna/run-parallel-batches - - - - - - -# [3.0.0-rc.0](https://github.com/lerna/lerna/compare/v3.0.0-beta.21...v3.0.0-rc.0) (2018-07-27) - -**Note:** Version bump only for package @lerna/run-parallel-batches diff --git a/utils/run-parallel-batches/README.md b/utils/run-parallel-batches/README.md deleted file mode 100644 index 9617948b2d..0000000000 --- a/utils/run-parallel-batches/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# `@lerna/run-parallel-batches` - -> An internal Lerna tool - -## Usage - -You probably shouldn't, at least directly. - -Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI. diff --git a/utils/run-parallel-batches/package.json b/utils/run-parallel-batches/package.json deleted file mode 100644 index 42a5bc57c1..0000000000 --- a/utils/run-parallel-batches/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@lerna/run-parallel-batches", - "version": "3.16.0", - "description": "An internal Lerna tool", - "keywords": [ - "lerna", - "utils" - ], - "homepage": "https://github.com/lerna/lerna/tree/master/utils/run-parallel-batches#readme", - "license": "MIT", - "author": { - "name": "Daniel Stockman", - "url": "https://github.com/evocateur" - }, - "files": [ - "run-parallel-batches.js" - ], - "main": "run-parallel-batches.js", - "engines": { - "node": ">= 6.9.0" - }, - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/lerna/lerna.git", - "directory": "utils/run-parallel-batches" - }, - "scripts": { - "test": "echo \"Run tests from root\" && exit 1" - }, - "dependencies": { - "p-map": "^2.1.0", - "p-map-series": "^1.0.0" - } -} diff --git a/utils/run-parallel-batches/run-parallel-batches.js b/utils/run-parallel-batches/run-parallel-batches.js deleted file mode 100644 index 77b16bb2ea..0000000000 --- a/utils/run-parallel-batches/run-parallel-batches.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -const pMap = require("p-map"); -const pMapSeries = require("p-map-series"); - -module.exports = runParallelBatches; - -function runParallelBatches(batches, concurrency, mapper) { - return pMapSeries(batches, batch => pMap(batch, mapper, { concurrency })); -}