Hey everyone! I was just wondering about the best...
# sst
r
Hey everyone! I was just wondering about the best practice in the
StaticSite
construct for running
npm install
before compiling the SPA? I just literally do
npm install && npm run build
for the
buildCommand
. Is there a better way? What does everyone else do?
t
I use yarn workspaces so that node_modules is shared at the root of the project. That way I can skip the install step since it'll already be there. Otherwise your way currently works well
r
Thanks!. That sounds like a better approach.
So you create a dependency in the sst project on the spa project, then yarn handles the rest?
t
the two projects don't actually need to know about each other
I'm working on updating this this week with some new learnings
r
Thanks!
j
@thdxr what are you new learning that you are going to update this repo with?
t
One thing was I decided not to have a discrete package between core and services. Breaks typescript renaming tools and that's not worth it
Instead implemented it with aliases