feat: Add support for repository name with dots#14
feat: Add support for repository name with dots#14xakraz wants to merge 4 commits intoJno21:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for parsing repository URLs that contain dots in the repository name. The implementation moves the .git suffix removal to occur before URL pattern matching, allowing repository names with dots to be correctly parsed.
Key Changes:
- Moved
.gitsuffix removal from the end of parsing to the beginning - Updated regex pattern to allow dots in repository names by removing the
/and.character exclusion from the repository name capture group
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add "prepare" script to run build before publishing Signed-off-by: Xavier Krantz <xakraz@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request makes two main improvements: it enhances the repository URL parsing logic to handle
.gitsuffixes more robustly, and it ensures the build step runs automatically when installing the package from a git repository by adding apreparescript.Build process improvements:
preparescript topackage.jsonso thatnpm run buildis executed automatically on install, which is important for users installing directly from git.Repository URL parsing enhancements:
parseRepositoryUrlfunction insrc/utils.tsto properly handle repository URLs with a.gitsuffix by stripping it before parsing, improving compatibility with various URL formats.