mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-12 10:11:42 -04:00
fix: added workspace peer dependencies substitution
PR #2727 close #2467
This commit is contained in:
5
.changeset/wise-deers-provide.md
Normal file
5
.changeset/wise-deers-provide.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-publishing": patch
|
||||
---
|
||||
|
||||
peerDependencies workspace substitution
|
||||
@@ -236,6 +236,7 @@ async function makePublishManifest (dir: string, originalManifest: ProjectManife
|
||||
dependencies: await makePublishDependencies(dir, originalManifest.dependencies),
|
||||
devDependencies: await makePublishDependencies(dir, originalManifest.devDependencies),
|
||||
optionalDependencies: await makePublishDependencies(dir, originalManifest.optionalDependencies),
|
||||
peerDependencies: await makePublishDependencies(dir, originalManifest.peerDependencies),
|
||||
}
|
||||
|
||||
const { publishConfig } = originalManifest
|
||||
|
||||
@@ -356,6 +356,9 @@ test('convert specs with workspace protocols to regular version ranges', async (
|
||||
optionalDependencies: {
|
||||
'lodash.deburr': 'workspace:^4.1.0',
|
||||
},
|
||||
peerDependencies: {
|
||||
'random-package': 'workspace:*',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'is-negative',
|
||||
@@ -431,6 +434,9 @@ test('convert specs with workspace protocols to regular version ranges', async (
|
||||
t.deepEqual(publishedManifest.optionalDependencies, {
|
||||
'lodash.deburr': '^4.1.0',
|
||||
})
|
||||
t.deepEqual(publishedManifest.peerDependencies, {
|
||||
'random-package': '1.2.3',
|
||||
})
|
||||
t.end()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user