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 basename of cwd as default fallback behaviour #2

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

sebdeckers
Copy link
Contributor

Hello! Handy package. Been using it for a while. Thanks for refactoring the code recently. 😀

It looks like a breaking change was introduced and is now inconsistent with the README description.

When passing no cwd argument, inside a directory without package.json nor Git repo, an error is thrown by path.basename(undefined).

This patch implements as per documentation and adds a test.

@eaviles
Copy link

eaviles commented Jun 14, 2019

Hi @jonschlinkert, could you take a look at this PR? thanks!

@kefranabg
Copy link

Hi @jonschlinkert, thanks for your work ! I really need this fix too 😉

@jonschlinkert jonschlinkert merged commit e25e055 into jonschlinkert:master Jul 28, 2023
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

4 participants