vite icon indicating copy to clipboard operation
vite copied to clipboard

chore: only allow pnpm using devEngines

Open ConsoleTVs opened this issue 4 months ago • 0 comments

Description

Forces the package manager to be pnpm by using devEngines option on package.json.

For NPM:

npm error code EBADDEVENGINES
npm error EBADDEVENGINES The developer of this package has specified the following through devEngines
npm error EBADDEVENGINES Invalid engine "packageManager"
npm error EBADDEVENGINES Invalid name "pnpm" does not match "npm" for "packageManager"
npm error EBADDEVENGINES {
npm error EBADDEVENGINES   current: { name: 'npm', version: '11.3.0' },
npm error EBADDEVENGINES   required: { name: 'pnpm', onFail: 'error' }
npm error EBADDEVENGINES }

For Yarn:

This project is configured to use pnpm because package.json has a "packageManager" field

For pnpm:

Scope: all 238 workspace projects
Packages: +88
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1359, reused 1197, downloaded 0, added 88, done

ConsoleTVs avatar Jun 12 '25 17:06 ConsoleTVs