Skip to content

Commit

Permalink
Fix repository field generation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Nov 28, 2022
1 parent e2cbdc3 commit c202fa7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/large-icons-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'modular-scripts': patch
---

Fix repository field generation on Windows
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function getRelativePathInRepo(packagePath: string) {
['rev-parse', '--show-toplevel'],
{ stdout: 'pipe' },
);
return path.relative(gitRepoPath, packagePath);
return path.relative(gitRepoPath, packagePath).replace(/\\/g, '/');
}

export async function getRepositoryField(packagePath: string) {
Expand Down

0 comments on commit c202fa7

Please sign in to comment.