UNPKG

lerna

Version:

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository

14 lines (12 loc) 344 B
// libs/commands/publish/src/lib/remove-temp-licenses.ts import fs from "fs-extra"; import pMap from "p-map"; function removeTempLicenses(packagesToBeLicensed) { if (!packagesToBeLicensed.length) { return Promise.resolve(); } return pMap(packagesToBeLicensed, (pkg) => fs.remove(pkg.licensePath)); } export { removeTempLicenses };