techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.8K
active users

Doug Parker 🕸️

Why is it so unreasonably hard to get to generate a damn lockfile? Even if I don't have any dependencies, I still want a lockfile!

@develwithoutacause how do yarn and npm behave in these scenarios? If they generate and empty lockfile, I guess we could do the same.

@zkochan I'm pretty sure creates a lockfile even for an empty package because I kept trying to do that combined with `pnpm import`.

I don't know that I've ever tried with .

At the very least I would expect `pnpm import` should _always_ create a lockfile or outright fail. Otherwise it's breaking the expectations of the user.

```
# Should never cat a non-existent file.
# Either a lockfile is generated, or the `pnpm import` command fails.
pnpm import && cat pnpm-lock.json
```