From aa8a1fcb5f43e2527b97c4719b14124a3788d82f Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Sun, 10 Mar 2024 12:22:29 -0400 Subject: [PATCH] Do not generate changelog entries for non-publishable packages, since folks reading the changelog will not care --- src/configuration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configuration.ts b/src/configuration.ts index 20c88c9..f8f2d75 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -51,7 +51,9 @@ function getPackages(rootPath: string): { name: string; path: string }[] { try { let { packages } = getPackagesSync(rootPath) as PackagesResult; - return packages.map(pkg => ({ + let publishablePackages = packages.filter(pkg => !(pkg.packageJson as any)["private"]); + + return publishablePackages.map(pkg => ({ name: pkg.packageJson.name, path: pkg.dir, }));