Skip to content

Commit

Permalink
Merge pull request #155 from awanlin/topic/skip-private-packages
Browse files Browse the repository at this point in the history
Filter out private packages
  • Loading branch information
benjdlambert authored Aug 23, 2024
2 parents f3f3bba + 3b79172 commit 9c49377
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions renovate-changesets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ async function main() {
includeRoots: true,
});

// If a package is private it's not being published
// which means it doesn't need a changeset
const publicPackages = allPackages.filter(p => !p.packageJson.private);

// Need to remove the topmost package if we're in a multi-workspace setup
const packageList = isMultipleWorkspaces
? allPackages.filter(p => p.dir !== process.cwd())
: allPackages;
? publicPackages.filter(p => p.dir !== process.cwd())
: publicPackages;

const changedFiles = await getChangedFiles();

Expand Down

0 comments on commit 9c49377

Please sign in to comment.