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: windows output path #599

Merged
merged 3 commits into from
Nov 23, 2024
Merged

fix: windows output path #599

merged 3 commits into from
Nov 23, 2024

Conversation

huozhi
Copy link
Owner

@huozhi huozhi commented Nov 23, 2024

The path could be relative but sort of absolute, so we always need to replace the leading cwd path, and also replace the sep to /

Before

Exports  File                                                                                     Size
.        ../D:\a\bunchee\bunchee\test\integration\dev-prod-convention\dist/index.development.mjs  48 B
         ../D:\a\bunchee\bunchee\test\integration\dev-prod-convention\dist/index.development.js   53 B
         ../D:\a\bunchee\bunchee\test\integration\dev-prod-convention\dist/index.production.mjs   47 B

After

Exports  File                                                                                     Size
.        dist/index.development.mjs  48 B
         dist/index.development.js   53 B
         dist/index.production.mjs   47 B

@huozhi huozhi merged commit 1c08595 into main Nov 23, 2024
4 checks passed
@huozhi huozhi deleted the fix/windows-output branch November 23, 2024 19:14
huozhi added a commit that referenced this pull request Nov 28, 2024
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.

1 participant