Skip to content

fix(examples): copy only chain-specific shared dirs into generated apps - #95

Merged
WillSewell merged 1 commit into
mainfrom
toshi/fix-generate-example-shared-copy
Oct 12, 2026
Merged

WillSewell merged 1 commit into
mainfrom
toshi/fix-generate-example-shared-copy

Conversation

@WillSewell

Copy link
Copy Markdown
Contributor

Summary

  • generate-example.mjs copies every directory in examples/shared/ into each generated app. Since chore(examples): move ABIs and IDLs to shared directory #93 moved ABIs and IDLs there, EVM apps receive idl/settlement_sale.ts, which imports @coral-xyz/anchor. EVM apps don't install it, so release-examples.sh fails at tsc for react-evm.
  • Each app now receives only its own chain's shared directory: abi/ for EVM apps, idl/ for SVM apps. All other shared directories are still copied to every app.

Test Plan

  • node examples/scripts/generate-example.mjs <app> builds successfully for react-evm, react-svm, nextjs-evm and nextjs-svm
  • Generated src/ contains abi/ only for EVM apps and idl/ only for SVM apps

Generated with Toshi

@WillSewell
WillSewell merged commit 0e0aad9 into main Oct 12, 2026
8 checks passed
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