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

feat: ignore node_modules folder in projects option glob #105

Merged

Conversation

stefanprobst
Copy link
Contributor

this ensures to not include the node_modules folder when expanding the projects option glob.

(similar to what @typescript-eslint/parser does, but with globby not glob, see https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-estree/src/parser.ts#L296-L306)

src/index.ts Outdated Show resolved Hide resolved
@JounQin
Copy link
Collaborator

JounQin commented May 25, 2022

Is that possible to add a test case for it?

yarn.lock Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@stefanprobst
Copy link
Contributor Author

do you have some guidance how a test for this should look like

@JounQin
Copy link
Collaborator

JounQin commented May 25, 2022

do you have some guidance how a test for this should look like

A new test folder with custom and nested node_modules folder which includes tsconfig.json, don't forget the add these node_modules into .gitignore.

@JounQin JounQin changed the title Ignore node_modules folder in projects option glob feat: ignore node_modules folder in projects option glob Jun 25, 2022
@JounQin JounQin merged commit 1e1b5a6 into import-js:master Jun 25, 2022
@stefanprobst stefanprobst deleted the ignore-node-modules-in-projects-glob branch June 25, 2022 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants