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: missing file name when only single path passed to filesFromPaths #31

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

alanshaw
Copy link
Member

The common path for the first file was set to the entire path, not dirname(path). For multiple files the common path ends up as dirname(path) but when there's only 1 it stays as path, so we end up stripping out the entire path 🤦‍♂️.

Copy link
Contributor

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

needs more windaz and moar tests

lib.js Outdated Show resolved Hide resolved
Co-authored-by: Oli Evans <oli@protocol.ai>
Copy link
Contributor

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

GO

@alanshaw alanshaw merged commit fc3b5a0 into main Dec 14, 2022
@alanshaw alanshaw deleted the fix/single-file-name branch December 14, 2022 22:31
alanshaw pushed a commit that referenced this pull request Dec 14, 2022
🤖 I have created a release *beep* *boop*
---


##
[1.0.1](v1.0.0...v1.0.1)
(2022-12-14)


### Bug Fixes

* missing file name when only single path passed to filesFromPaths
([#31](#31))
([fc3b5a0](fc3b5a0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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