Skip to content
Discussion options

You must be logged in to vote

src/_generated has to be kept in because

  • it brings the contract addresses from the shared package into the indexer package
  • its values are used at both build time and run time (check imports from those location in the codebase)

When we add a new address, before deploying, we need to run a pre-deployment step (see the setup script) which includes this generation step. We need to do this because envio and the-graph use different package managers (pnpm and yarn) which don't play nice with shared workspaces and direct external imports (I tried). Hence the need for a copy-paste step.

You are correct that the rule should say _generated (we want to force it to be included in the version control…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PaulRBerg
Comment options

PaulRBerg May 1, 2025
Maintainer Author

Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants