monorepo with sapphire

how would you go about installing a yarn or npm monorepo with sapphire bots?
6 Replies
Favna
Favna2mo ago
Same as with any monorepo. Just mind that you cd into a subfolder before starting that particular bot.
Zaiden
ZaidenOP2mo ago
Been trying with yarn and typescript but it ends up messing up entirely Do you have any handy guide or anything of the kind
Favna
Favna2mo ago
We have the sapphire guide in general but that's not monorepo specific. To adjust it for monorepo just add a root package.json, create a folder called bots or apps or whatever then a directory per bot which follows a structure mostly similar to a regular repo. The only factor then is that you can deduplicate build tooling and checks to the root of the monorepo
Zaiden
ZaidenOP2mo ago
what about the tsconfig extending @sapphire/ts-config and @sapphire/ts-config/* it becomes unable to find them
Favna
Favna2mo ago
Similar to any monorepo. For example https://github.com/sapphiredev/plugins
GitHub
GitHub - sapphiredev/plugins: Plugins for the Sapphire Framework
Plugins for the Sapphire Framework. Contribute to sapphiredev/plugins development by creating an account on GitHub.
Zaiden
ZaidenOP2mo ago
👍 ty

Did you find this page helpful?