mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
fix: don't incorrectly identify a lockfile out-of-date (#5126)
when the package has a publishConfig.directory field close #5124
This commit is contained in:
6
.changeset/eighty-cheetahs-shout.md
Normal file
6
.changeset/eighty-cheetahs-shout.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/lockfile-file": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Don't incorrectly identify a lockfile out-of-date when the package has a publishConfig.directory field [#5124](https://github.com/pnpm/pnpm/issues/5124).
|
||||
@@ -231,6 +231,7 @@ function convertFromLockfileFileMutable (lockfileFile: LockfileFile): Lockfile {
|
||||
'.': {
|
||||
specifiers: lockfileFile['specifiers'] ?? {},
|
||||
dependenciesMeta: lockfileFile['dependenciesMeta'],
|
||||
publishDirectory: lockfileFile['publishDirectory'],
|
||||
},
|
||||
}
|
||||
delete lockfileFile.specifiers
|
||||
|
||||
@@ -27,6 +27,7 @@ test('readWantedLockfile()', async () => {
|
||||
dependenciesMeta: {
|
||||
foo: { injected: true },
|
||||
},
|
||||
publishDirectory: undefined,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user