Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.
/ rush-pnpm-bug Public archive

Reproduction of a bug with Rush + pnpm

License

Notifications You must be signed in to change notification settings

elliottsj/rush-pnpm-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rush-pnpm-bug

Reproduction of a bug with Rush + pnpm: microsoft/rushstack#1142

The bug is that [email protected] is installed, despite [email protected] being declared in pnpm-lock.yaml:

$ npm install --global @microsoft/rush
$ rush install
$ cat common/temp/node_modules/.registry.npmjs.org/react-focus-lock/1.19.1/node_modules/react-focus-lock/package.json
{
  "name": "react-focus-lock",
  "version": "1.19.1",
  "description": "It is a trap! (for a focus)",
  ...

This bug seems not to occur when using pnpm without Rush. I've copied common/temp/package.json and common/config/rush/pnpm-lock.yaml into a directory pnpm-only/ and removed all references to "mypackage.tgz". Perform the install using just pnpm:

$ cd pnpm-only/
$ npm install --global [email protected]
$ pnpm install
$ cat node_modules/.registry.npmjs.org/react-focus-lock/1.17.7/node_modules/react-focus-lock/package.json
{
  "name": "react-focus-lock",
  "version": "1.17.7",
  "description": "It is a trap! (for a focus)",
  ...

About

Reproduction of a bug with Rush + pnpm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published