aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-19 21:34:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-10-19 21:36:46 +0800
commit3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3 (patch)
tree62de6dc471a8f9a686561a2c06f130050d6d09b3 /packages/monorepo-scripts/src/publish.ts
parent17643d98aae596f896039459afbc1ce3df51a073 (diff)
downloaddexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.tar
dexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.tar.gz
dexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.tar.bz2
dexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.tar.lz
dexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.tar.xz
dexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.tar.zst
dexon-sol-tools-3f2b6482c3e0abcc2b6dc1a3caef767c01a446b3.zip
Fix the package versions in release notes
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index b7131e69e..854a72b86 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -34,12 +34,12 @@ async function confirmAsync(message: string): Promise<void> {
(async () => {
// Fetch public, updated Lerna packages
const shouldIncludePrivate = true;
- const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate);
- if (_.isEmpty(allUpdatedPackages)) {
+ const allPackagesToPublish = await utils.getPackagesToPublishAsync(shouldIncludePrivate);
+ if (_.isEmpty(allPackagesToPublish)) {
utils.log('No packages need publishing');
process.exit(0);
}
- const packagesWithDocs = getPackagesWithDocs(allUpdatedPackages);
+ const packagesWithDocs = getPackagesWithDocs(allPackagesToPublish);
if (!configs.IS_LOCAL_PUBLISH) {
await confirmAsync(
@@ -49,12 +49,12 @@ async function confirmAsync(message: string): Promise<void> {
}
// Update CHANGELOGs
- const updatedPublicPackages = _.filter(allUpdatedPackages, pkg => !pkg.packageJson.private);
+ const updatedPublicPackages = _.filter(allPackagesToPublish, pkg => !pkg.packageJson.private);
const updatedPublicPackageNames = _.map(updatedPublicPackages, pkg => pkg.packageJson.name);
utils.log(`Will update CHANGELOGs and publish: \n${updatedPublicPackageNames.join('\n')}\n`);
const packageToNextVersion = await updateChangeLogsAsync(updatedPublicPackages);
- const updatedPrivatePackages = _.filter(allUpdatedPackages, pkg => pkg.packageJson.private);
+ const updatedPrivatePackages = _.filter(allPackagesToPublish, pkg => pkg.packageJson.private);
_.each(updatedPrivatePackages, pkg => {
const currentVersion = pkg.packageJson.version;
const packageName = pkg.packageJson.name;