webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

Allow setting package manager via config

Open OrbisK opened this issue 5 months ago • 0 comments

Is your feature request related to a problem? Please describe:

Stackblitz can autodetect pnpm, but not without an existing pnpm-lock.yaml file. For some starter templates, we don't want to add a lock file to the repository.

Describe the solution you'd like: package.json

{
  "stackblitz": {
    "packageManager": "pnpm"
  }
}

Describe alternatives you've considered:

It is possible to add an empty pnpm-lock.yml to the repository to force StackBlitz to use pnpm and hydrate the content-addressable store. However, this does not work alongside the Renovate bot because it will always update the lockfile.

Additional context:

OrbisK avatar Jul 17 '25 10:07 OrbisK