I’m seeing lots of my services getting redeployed ...
# seed
o
I’m seeing lots of my services getting redeployed unnecessarily because
lerna ls
says they were updated because a devDependency changed. This dependency is a util only used in tests - any way of telling lerna to exclude devDependencies when checking whether a package or its dependencies have been updated?
After the webpack build SEED sees that nothing changed in the code package, so it doesn’t end up deploying, but still takes 5 mins to run the build
j
Hmm on the Lerna side, not that I'm aware of. Is most of the time spent in the
serverless package
step?
o
yeah, using
serverless-bundle
, want to switch to esbuild, not sure sue how much of a drop in replacement it’s though
j
I haven't had a chance to try it out yet but the upcoming version for serverless-bundle has esbuild support https://github.com/AnomalyInnovations/serverless-bundle/issues/229
custom.bundle.esbuild
is the option
o
yaaas
j
Let me know how it goes once you try it.
o
So I tried it…doesn’t seem to make any difference. I confirmed the the esbuild flag was working by logging the loaders
without esbuild: real 1m24.307s with esbuild: real 1m25.200s
I think I got it working I need to set
Copy code
disableForkTsChecker: true
  esbuild: true
Trying it out on SEED now
j
Oh interesting, you had to disable the TS Checker as well.
o
Ok, have deployed a couple of times, build times went down 30-80% once everything stabilised 🙂
j
Oh that’s good stuff. Any other issues while enabling this?
o
Not that I’ve found, all my tests are passing ok