diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-02 03:10:18 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-02 03:10:18 +0800 |
commit | 0e33f45f3dbf7934692e3baa3daa90ddab0c184f (patch) | |
tree | ecf8132ee282c0ee774afefb927417333413646d | |
parent | 08b30b0706751eb2a4318f8287dd8a7502276a59 (diff) | |
download | dexon-0x-contracts-0e33f45f3dbf7934692e3baa3daa90ddab0c184f.tar.gz dexon-0x-contracts-0e33f45f3dbf7934692e3baa3daa90ddab0c184f.tar.zst dexon-0x-contracts-0e33f45f3dbf7934692e3baa3daa90ddab0c184f.zip |
Improve naming
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts index e2c0edff8..1821dad28 100644 --- a/packages/monorepo-scripts/src/publish.ts +++ b/packages/monorepo-scripts/src/publish.ts @@ -27,14 +27,14 @@ const semverNameToIndex: { [semver: string]: number } = { const updatedPackageNames = _.map(updatedPublicPackages, pkg => pkg.name); const allLernaPackages = lernaGetPackages(constants.monorepoRootPath); - const relevantLernaPackages = _.filter(allLernaPackages, pkg => { + const updatedPublicLernaPackages = _.filter(allLernaPackages, pkg => { return _.includes(updatedPackageNames, pkg.package.name); }); - const relevantPackageNames = _.map(relevantLernaPackages, pkg => pkg.package.name); + const relevantPackageNames = _.map(updatedPublicLernaPackages, pkg => pkg.package.name); utils.log(`Will update CHANGELOGs and publish: \n${relevantPackageNames.join('\n')}\n`); const packageToVersionChange: { [name: string]: string } = {}; - _.each(relevantLernaPackages, lernaPackage => { + _.each(updatedPublicLernaPackages, lernaPackage => { const packageName = lernaPackage.package.name; const changelogJSONPath = path.join(lernaPackage.location, 'CHANGELOG.json'); const changelogJSON = getChangelogJSONOrCreateIfMissing(lernaPackage.package.name, changelogJSONPath); |