subsquid / squid-cli

CLI for managing squid deployments to the SQD Cloud
17 stars 16 forks source link

Implement .squidignore #71

Closed belopash closed 5 months ago

mlenser commented 6 months ago

This would be super helpful. Currently we're having to delete large amount of code from our monorepo to get a deploy to work.

belopash commented 6 months ago

@mlenser .squidignore is available in @subsquid/cli@2.9.0-beta.1. It follows .gitignore spec. Please try it out 🙂

mlenser commented 6 months ago

It appears to work!

For our monorepo we had to add it to both the root and the indexer package for it to work. Or at least the indexer package even though the command was run from root. But all good. Thank you!

belopash commented 6 months ago

For our monorepo we had to add it to both the root and the indexer package for it to work. Or at least the indexer package even though the command was run from root. But all good. Thank you!

Yep, it's intendend behaviour. But why do you need to add it to both root and package? Why not just to root?