-
Notifications
You must be signed in to change notification settings - Fork 67
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 repository field generation on Windows #2218
Fix repository field generation on Windows #2218
Conversation
🦋 Changeset detectedLatest commit: f88456b 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 |
packages/modular-scripts/src/build/buildPackage/getRepositoryField.ts
Outdated
Show resolved
Hide resolved
c202fa7
to
79d614e
Compare
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.
It seems node 14 is failing with path.relative(...).replaceAll is not a function
.
This is because we transpile, but not polyfill.
79d614e
to
f88456b
Compare
return path.relative(gitRepoPath, packagePath); | ||
return path | ||
.relative(gitRepoPath, packagePath) | ||
.split(path.win32.sep) |
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.
This is the same as the utils in esbuild-scripts, so probably can be cleaned up in the future to use the same utility
Any update on this? |
Sorry, didn't get a notification on your latest changes. Merged. |
No description provided.