When using yarn in deploys, is there a way to spec...
# seed
t
When using yarn in deploys, is there a way to specify version (v1 or v2 of yarn)?
f
Hey @Trey Overton, most build images come with yarn 1.22.5, which supports yarn 2. So if you have yarn 2 configured for your project, yarn will use v2 automatically.
I created a sample repo here with yarn 3 - https://github.com/fwang/sst-yarn3. In the before_compile hook I’m printing out
yarn -v
. So if you deploy this repo to Seed, you can see
3.1.1
being printed out.
t
Very good, it handles it and I don't have to do anything special. I like this. I'm not sure if this is not in the docs, or I'm just bad at finding it. I only saw that it detects if you are using yarn, nothing about versions.
s
I didn't even know there was a yarn 3! 😄