I have a repository on Github with monorepo project which includes library written with using NestJS framework. Structure like below:
MAIN FOLDER:
- apps:
-- projectA
-- projectB
- libs:
-- libraryA
-- libraryB
ProjectA and ProjectB using both of the libraries from libs folder,
How to deploy on heroku projectA and projectB so that they use resources from my libraries?
And another question,in package.json I ahve this command to build projectA after deployment on heroku:
"start": "node dist/apps/projectA/main.js",
how to deploy projectB when in this package.json path to the main.js must be different?
Thanks for any help!