Skip to content

fix(tokenlist): dedupe post-build asset handling#814

Open
aproskill81 wants to merge 1 commit intotempoxyz:mainfrom
aproskill81:fix/tokenlist-postbuild-dedupe
Open

fix(tokenlist): dedupe post-build asset handling#814
aproskill81 wants to merge 1 commit intotempoxyz:mainfrom
aproskill81:fix/tokenlist-postbuild-dedupe

Conversation

@aproskill81
Copy link
Copy Markdown

Why

The tokenlist build was doing the same post-build work more than once.

We already handle copying data/ into dist and patching wrangler.json in vite.config.ts, but the build still also invoked scripts/postbuild.ts. On top of that, the Vite plugin was running in both the tokenlist and client environments, so the copy/patch step could run twice in a single build.

What changed

  • removed the standalone scripts/postbuild.ts call from the build script
  • kept the post-build logic in one place inside vite.config.ts
  • limited the copy-assets plugin to the tokenlist environment so the asset copy and wrangler.json patch only run once

@o-az o-az force-pushed the fix/tokenlist-postbuild-dedupe branch from 19a5203 to 8243e32 Compare April 9, 2026 13:20
@o-az o-az force-pushed the fix/tokenlist-postbuild-dedupe branch from 8243e32 to 4bd5bf0 Compare April 10, 2026 13:18
@o-az o-az enabled auto-merge (squash) April 10, 2026 13:18
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.

2 participants