Comment

Comment by ealexhudson

The reason is simple: it allows you to do the install using "sync" in all cases, whether the lockfile exists or not.

Where the lockfile doesn't exist, it creates it from whatever current is, and the lockfile then gets thrown away later. So it's equivalent to what you're saying, it just avoids having two completely separate install paths. I think it's the correct approach.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton