Skip to content

Commit

Permalink
Fixed filtering of the ignored packages when adding a changeset (#871)
Browse files Browse the repository at this point in the history
* Fix: Changes not detected by changeset cli 2.23.1

Not include ignore.

* Create slimy-dolls-hang.md

Co-authored-by: Mateusz Burzy艅ski <mateuszburzynski@gmail.com>
  • Loading branch information
NicoKam and Andarist committed Jul 13, 2022
1 parent b812293 commit e174172
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-dolls-hang.md
@@ -0,0 +1,5 @@
---
"@changesets/cli": patch
---

Fixed filtering of the ignored packages when adding a changeset.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/add/index.ts
Expand Up @@ -42,7 +42,7 @@ export default async function add(
});
const changePackagesName = changedPackages
.map(pkg => pkg.packageJson.name)
.filter(pkgName => config.ignore.includes(pkgName));
.filter(pkgName => !config.ignore.includes(pkgName));

newChangeset = await createChangeset(changePackagesName, packages);
printConfirmationMessage(newChangeset, packages.length > 1);
Expand Down

0 comments on commit e174172

Please sign in to comment.