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: loadFiles path resolving issue #1542

Merged
merged 3 commits into from May 27, 2020
Merged

fix: loadFiles path resolving issue #1542

merged 3 commits into from May 27, 2020

Conversation

cheng-kang
Copy link
Contributor

@cheng-kang cheng-kang commented May 27, 2020

loadFiles fails to load file with non-directory minimatch patterns. It's using async function isDirectory for pattern checking but not waiting for it to finish, hence the result of the ternary is always exprIfTrue.

This PR adds await.

@ardatan
Copy link
Owner

ardatan commented May 27, 2020

Thank you @cheng-kang !

@ardatan ardatan merged commit 10252a1 into ardatan:master May 27, 2020
@theguild-bot
Copy link
Collaborator

The latest changes of this PR are available as alpha in npm: 6.0.2-alpha-10252a1.0

Quickly update your package.json by running:

npx match-version @graphql-tools 6.0.2-alpha-10252a1.0

@cheng-kang cheng-kang deleted the fix/loadFiles-path-resolving-issue branch May 27, 2020 20: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.

None yet

3 participants