pnpm up
replaces workspace:
protocol relative paths with version range
#3902
Labels
pnpm up
replaces workspace:
protocol relative paths with version range
#3902
pnpm version: 6.17.2
Code to reproduce the issue:
As mentioned in #3901, running
pnpm up
changes dependencies which theworkspace:
protocol with a relative path to a version specifier instead:The
link:
in thepnpm-lock.yaml
file also gets changed - this is a significant problem if theworkspace:
path was being used to point at a publish directory (again, discussed in #3901):Expected behavior:
workspace:
specifier is not modified bypnpm up
link:
inpnpm-lock.yaml
is also not modifiedActual behavior:
workspace:
path specifier is replaced with current package version using^
range specifierlink:
in thepnpm-lock.yaml
file is overwrittenlink:
still gets modified even when runningup
with the--no-save
flagAdditional information:
node -v
prints: v14.15.1The text was updated successfully, but these errors were encountered: