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

fix: Normalise package.json#files before checking ignores and whitelist #123

Merged
merged 4 commits into from Oct 10, 2023

Conversation

scagood
Copy link

@scagood scagood commented Sep 27, 2023

This normalises paths in package.json#files before we check to see if the file will be published to npm.

Context can be found in #122 (comment)

@scagood scagood changed the title test: Add failing test for #99 and #122 fix: Normalise package.json#files before checking ignores and whitelist Sep 27, 2023
@@ -90,7 +89,10 @@ function parseWhiteList(files) {

for (const file of files) {
if (typeof file === "string" && file) {
const body = file.replace(SLASH_AT_BEGIN_AND_END, "")
const body = path.posix
Copy link
Author

@scagood scagood Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that ignore only supports posix, even though the read me says other wise 🤔

Copy link

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@aladdin-add aladdin-add merged commit 2d43f48 into eslint-community:master Oct 10, 2023
15 checks passed
@scagood scagood deleted the issue-99+122 branch November 9, 2023 19:26
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.

None yet

2 participants