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 repository field generation on Windows #2218

Conversation

joshwooding
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2022

🦋 Changeset detected

Latest commit: f88456b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
modular-scripts Patch

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

@coveralls
Copy link
Collaborator

coveralls commented Nov 28, 2022

Coverage Status

Coverage decreased (-0.01%) to 33.276% when pulling f88456b on joshwooding:fix-repository-field-generation-on-windows into 4a541a9 on jpmorganchase:main.

@joshwooding joshwooding force-pushed the fix-repository-field-generation-on-windows branch from c202fa7 to 79d614e Compare December 7, 2022 09:36
Copy link
Contributor

@cristiano-belloni cristiano-belloni left a 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.

@joshwooding joshwooding force-pushed the fix-repository-field-generation-on-windows branch from 79d614e to f88456b Compare December 7, 2022 10:36
return path.relative(gitRepoPath, packagePath);
return path
.relative(gitRepoPath, packagePath)
.split(path.win32.sep)
Copy link
Contributor Author

@joshwooding joshwooding Dec 7, 2022

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

@joshwooding
Copy link
Contributor Author

Any update on this?

@cristiano-belloni cristiano-belloni merged commit 15a417c into jpmorganchase:main Dec 9, 2022
@cristiano-belloni
Copy link
Contributor

Any update on this?

Sorry, didn't get a notification on your latest changes. Merged.

@github-actions github-actions bot mentioned this pull request Dec 9, 2022
@joshwooding joshwooding deleted the fix-repository-field-generation-on-windows branch December 9, 2022 14:57
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

3 participants