-
-
Notifications
You must be signed in to change notification settings - Fork 87
fix: directory symlink handling #200
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: directory symlink handling #200
Conversation
🦋 Changeset detectedLatest commit: 331f6a9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
src/isSupportedExtension.ts
Outdated
| @@ -1,12 +1,22 @@ | |||
| /* eslint-disable unicorn/filename-case */ | |||
|
|
|||
| import { promises as fsp } from 'fs' | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import { promises as fsp } from 'fs' | |
| import fs from 'fs/promises' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
src/isSupportedExtension.ts
Outdated
| * exist, so permit nonexistent files to go through (they appear to be | ||
| * detected by suffix, so never get read). | ||
| */ | ||
| if (stat?.isDirectory()) return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (stat?.isDirectory()) return false | |
| if (stat?.isDirectory()) { | |
| return false | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
JounQin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution!
This is an attempt to fix issue 196, and adds tests to verify same. Hopefully the inline comment explains things adequately.
I got complaints about the absence of
simple-git-hooksas well, so added it as a dev-dependency.