mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-03 15:01:48 -04:00
committed by
GitHub
parent
f5ec0a96f2
commit
5565dd5f42
5
.changeset/thirty-adults-invite.md
Normal file
5
.changeset/thirty-adults-invite.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-installation": minor
|
||||
---
|
||||
|
||||
Use a more detailed cyclic dependencies warning
|
||||
@@ -129,7 +129,7 @@ when running add/update with the --workspace option')
|
||||
? `: ${sequencedGraph.cycles.map(deps => deps.join(', ')).join('; ')}`
|
||||
: ''
|
||||
logger.warn({
|
||||
message: `There are cyclic dependencies${cyclicDependenciesInfo}`,
|
||||
message: `There are cyclic workspace dependencies${cyclicDependenciesInfo}`,
|
||||
prefix: opts.workspaceDir,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ test('should warn about cyclic dependencies', async () => {
|
||||
|
||||
expect(logger.warn).toHaveBeenCalledTimes(1)
|
||||
expect(logger.warn).toHaveBeenCalledWith({
|
||||
message: expect.stringMatching(/^There are cyclic dependencies: /),
|
||||
message: expect.stringMatching(/^There are cyclic workspace dependencies: /),
|
||||
prefix: process.cwd(),
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user