pnpm icon indicating copy to clipboard operation
pnpm copied to clipboard

pnpm add local package name is incorrect

Open huzedong2015 opened this issue 3 years ago • 1 comments

pnpm version: 7.2

Code to reproduce the issue:

$ pnpm add ../test

test/package.json name is "@google/test"

{
    "name": "@google/test"
}

Expected behavior:

package.json { dependencies: { @google/test: "0.0.0", } }

Actual behavior:

package.json { dependencies: { test: "0.0.0", } }

Additional information:

  • node -v prints: 14.19.0
  • Windows, macOS, or Linux?:Windows

huzedong2015 avatar Apr 17 '22 06:04 huzedong2015

How is this not a major issue? What do people do when they want to install their package locally before publishing?

lidermanrony avatar Feb 06 '24 07:02 lidermanrony