Skip to content

fix: only look at .gitignores from within the current repository - #49

Merged
jayu merged 2 commits into
codeque-co:masterfrom
laukondrup:laukondrup/support-meta-repo
Sep 27, 2025
Merged

fix: only look at .gitignores from within the current repository#49
jayu merged 2 commits into
codeque-co:masterfrom
laukondrup:laukondrup/support-meta-repo

Conversation

@laukondrup

Copy link
Copy Markdown
Contributor

Please see #48

Comment on lines +304 to +308
expect(filesList.sort()).toMatchObject(
[`${root}/project/packageA/src/fileE.json`]
.sort()
.map(toPlatformSpecificPath),
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Currently, this returns an empty array because the implementation will look at the .gitignore on line 282

Comment thread packages/core/src/getFilesList.ts
@laukondrup
laukondrup force-pushed the laukondrup/support-meta-repo branch from 9c89cbe to 9e39753 Compare September 16, 2025 20:11
@laukondrup
laukondrup force-pushed the laukondrup/support-meta-repo branch from b89a8d2 to f2de031 Compare September 19, 2025 10:51
searchRoot: string
fsRoot: string
}) => {
let currentDir = path.resolve(searchRoot)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if the code should be defensive - if the user passes a path that doesn't exist this will throw an error

@laukondrup
laukondrup marked this pull request as ready for review September 19, 2025 10:54
@jayu
jayu merged commit 6443f57 into codeque-co:master Sep 27, 2025
@jayu

jayu commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

@laukondrup It has been released in version 0.36.0. Thank you for your contribution !

@laukondrup

Copy link
Copy Markdown
Contributor Author

Cheers 🥳

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.

2 participants