just a heads-up: Yarn 2 is very picky about having...
# sst
s
just a heads-up: Yarn 2 is very picky about having dependencies properly included in package.json:
Copy code
YN0002: │ @aws-cdk/aws-events-targets@npm:1.111.0 [d4661] doesn't provide @aws-cdk/assets (p44201), requested by @aws-cdk/aws-codebuild
➤ YN0002: │ testproj@workspace:. doesn't provide jest (pa7e45), requested by @aws-cdk/assert
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 6s 410ms
it doesn’t like the fact that
jest
is not in the dependencies. could work in
peerDependencies
but maybe better in
devDependencies
. so maybe the SST project creation script could include
jest
. more info on this: https://dev.to/arcanis/implicit-transitive-peer-dependencies-ed0
f
s
nice! thanks 🙂 also.. in case you’re interested, I may have figured out how to use SST w/ Yarn 2 PnP (zero-install). if it works, I’ll let you know. this may be a great option for some people as it’ll greatly speed up build times & testing in CI/CD
f
Yeah for sure! keep me posted!
t
@Sam Hulick - did you ger some progress on this? We tried yarn2 as well - but reverted back to v1 due to issues (we had tight schedule for hte project 😄 )
s
@Tomasz Sobczyk No problems using Yarn 2 at all. just can’t use PnP mode, that’s all