monorepo with sapphire
how would you go about installing a yarn or npm monorepo with sapphire bots?
6 Replies
Same as with any monorepo. Just mind that you cd into a subfolder before starting that particular bot.
Been trying with yarn and typescript but it ends up messing up entirely
Do you have any handy guide or anything of the kind
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
what about the tsconfig extending @sapphire/ts-config and @sapphire/ts-config/*
it becomes unable to find them
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.
👍
ty