aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-26 20:11:12 +0800
committerFabio Berger <me@fabioberger.com>2018-09-26 20:11:12 +0800
commitf33ecfd2fcff106c673c5f96350e12f831b3295f (patch)
treea027a5f08ae6bb3607f9d1d5a83dd4ed6fa619f2 /packages/monorepo-scripts/src/utils
parent1b35a6e3b5d050fa33097b35e1d739ca13c6806e (diff)
downloaddexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar
dexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.gz
dexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.bz2
dexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.lz
dexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.xz
dexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.tar.zst
dexon-sol-tools-f33ecfd2fcff106c673c5f96350e12f831b3295f.zip
Support passing in package names into publish_release_notes command-line for when publishing must be done manually
Diffstat (limited to 'packages/monorepo-scripts/src/utils')
-rw-r--r--packages/monorepo-scripts/src/utils/utils.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/utils/utils.ts b/packages/monorepo-scripts/src/utils/utils.ts
index 2ce36942c..5e2e877c7 100644
--- a/packages/monorepo-scripts/src/utils/utils.ts
+++ b/packages/monorepo-scripts/src/utils/utils.ts
@@ -54,6 +54,13 @@ export const utils = {
}
return packages;
},
+ async getPackagesByNameAsync(packageNames: string[]): Promise<Package[]> {
+ const allPackages = utils.getPackages(constants.monorepoRootPath);
+ const updatedPackages = _.filter(allPackages, pkg => {
+ return _.includes(packageNames, pkg.packageJson.name);
+ });
+ return updatedPackages;
+ },
async getUpdatedPackagesAsync(shouldIncludePrivate: boolean): Promise<Package[]> {
const updatedPublicPackages = await utils.getLernaUpdatedPackagesAsync(shouldIncludePrivate);
const updatedPackageNames = _.map(updatedPublicPackages, pkg => pkg.name);