Anyone else seeing a yarn.lock file appear after r...
# general
r
Anyone else seeing a yarn.lock file appear after running
sst update
? I've had it for a few versions now, not sure why as we use npm.
f
Hey @Ross Coundon, what’s the exact command you used to run the update, ie.
npm run update
?
Let me know and I will give it a try on my end.
r
npx sst update
I guess it could be something to do with my specific setup but it's just weird as we don't use yarn
f
hmm.. I’m not able to reproduce this on my machine.
Is
sst.json
at the repo root? And is the
yarn.lock
appearing also at the repo root after update?
r
that's right
Don't worry about it, Frank. I'll try removing yarn from my system entirely and see if that makes a difference. If others aren't seeing it, it's almost certainly peculiar to me
f
oh i might’ve found something
I tried putting a dummy
yarn.lock
at the parent diretory (1 level above
sst.json
)
I think the update command should only look within the current repo to decide if
yarn
or
npm
should be used.
Lemme cc @thdxr on this.
r
Ah, I do have a yarn.lock, presumably from an old experiment, sat at the next level up on disk
f
Next time when you update, let me know if you still see a
yarn.lock
generated even after removing the
yarn.lock
in the parent directory.
r
Nope, didn't appear when yarn.lock remove from parent