Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: package.json files should deduplicate clear directory subsets #2106

Closed
3 tasks done
JoshuaKGoldberg opened this issue Apr 2, 2025 · 1 comment · Fixed by #2107
Closed
3 tasks done

🐛 Bug: package.json files should deduplicate clear directory subsets #2106

JoshuaKGoldberg opened this issue Apr 2, 2025 · 1 comment · Fixed by #2107
Assignees
Labels
status: accepting prs Please, send a pull request to resolve this! type: bug Something isn't working :(

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

If blockPackageJson is being told to print:

"files": [
	"LICENSE.md",
	"README.md",
	"lib/",
	"lib/bin/pjv.mjs"
]

...then it should know to remove "lib/bin/pjv.mjs". It's clearly matched by the earlier "lib/".

Actual

https://github.com/JoshuaKGoldberg/package-json-validator/pull/178/files#r2024966892 shows that this is not the case right now.

Additional Info

🎁

Copy link

github-actions bot commented Apr 2, 2025

🎉 This is included in version v2.22.9 🎉

The release is available on:

Cheers! 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! type: bug Something isn't working :(
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant