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

feat(partytown): allow overriding copyLibFiles.dest in astro:build:done hook with the lib option #13109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arnottferels
Copy link

Adds customization for the default ~partytown copy file folder in @astrojs/partytown during the astro:build:done hook.

Changes

  • Adds support for overriding copyLibFiles.dest in the astro:build:done hook using the lib option in astro.config.*.
  • If lib is not specified, it defaults to ~partytown.
  • Removes the leading "/" from the lib value to match the behavior of fileURLToPath.

Testing

If no tests added, explain why.

I didn't add tests because I'm still figuring out how testing works. But I tested it locally by running astro build, and the copy file from Partytown is being copied correctly. The logic seems to work well.

Docs

/cc @withastro/maintainers-docs for feedback!

Copy link

changeset-bot bot commented Jan 31, 2025

🦋 Changeset detected

Latest commit: 1d5e936

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

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

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Jan 31, 2025
…b option, defaulting to ~partytown. Remove leading '/' to match ileURLToPath.
@florian-lefebvre
Copy link
Member

I'm not familiar with partytown, why would you want something in a different location?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants