Gjorgji Kjosev
03/12/2022, 9:14 PMapps, services, packages and infra . Each "service" should have its package.json "main" point to an exported stack, which may take dependencies as props. Each app (there will be two really, web and mobile app) similarly exports a "main" which is a stack (well a mobile app doesn't, a web one does). Packages are libraries, their main points to the library entrypoint, and should be usable from any of the frontends or backends (shared types, configs, validations go here). infra basically contains the main SST index which ties the services and front ends together. Thoughts? 😅Gjorgji Kjosev
03/12/2022, 9:15 PM--path in sst-env and some other pre-resolved paths with require.resolve)Gjorgji Kjosev
03/12/2022, 9:19 PM--wait in sst-env, which would let turborepo run dev in parallel in the infra and (web) app (or infra + mobile app)Gjorgji Kjosev
03/12/2022, 10:52 PMconst moduleDir = path.dirname(require.resolve("@prject/service-name/package.json")) - and then this is used to pass srcPath 🙂gligor
03/13/2022, 7:57 AMGjorgji Kjosev
03/13/2022, 11:41 AMGjorgji Kjosev
03/13/2022, 11:41 AMapp-infraGjorgji Kjosev
03/13/2022, 11:43 AMGjorgji Kjosev
03/13/2022, 7:57 PMrequire the typescript file outside of dev mode. Still think its turning out pretty clean so far. Will update once its ready.Sam Frampton
03/22/2022, 1:59 PMpackages scripts stacks at root with lerna.