Skip to content

feat: support glob patterns in publishConfig.executableFiles#7098

Open
Saadnajmi wants to merge 6 commits intoyarnpkg:masterfrom
Saadnajmi:feat/executable-files-glob-support
Open

feat: support glob patterns in publishConfig.executableFiles#7098
Saadnajmi wants to merge 6 commits intoyarnpkg:masterfrom
Saadnajmi:feat/executable-files-glob-support

Conversation

@Saadnajmi
Copy link
Copy Markdown
Contributor

Summary

publishConfig.executableFiles now accepts glob patterns like scripts/**/*.sh, not just exact paths. Fully backward compatible.

Approach

Replaced Set.has() with mm.isMatch() (micromatch — already used in the same file). Exact paths are valid globs, so existing configs work unchanged.

Test plan

  • All 46 existing pack tests pass
  • New test verifying glob patterns match correctly

🤖 Generated with Claude Code

Saadnajmi and others added 5 commits April 10, 2026 22:53
Replace Set.has() exact lookup with mm.isMatch() (micromatch) for
executableFiles matching, enabling glob patterns like "scripts/**/*.sh".
Fully backward compatible since exact paths are valid glob patterns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Saadnajmi Saadnajmi force-pushed the feat/executable-files-glob-support branch from f2cee5a to 2f68611 Compare April 11, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant