File tree Expand file tree Collapse file tree 2 files changed +42
-8
lines changed
packages/yarnpkg-core/sources Expand file tree Collapse file tree 2 files changed +42
-8
lines changed Original file line number Diff line number Diff line change
1
+ releases :
2
+ " @yarnpkg/cli " : patch
3
+ " @yarnpkg/core " : patch
4
+
5
+ declined :
6
+ - " @yarnpkg/plugin-compat"
7
+ - " @yarnpkg/plugin-constraints"
8
+ - " @yarnpkg/plugin-dlx"
9
+ - " @yarnpkg/plugin-essentials"
10
+ - " @yarnpkg/plugin-exec"
11
+ - " @yarnpkg/plugin-file"
12
+ - " @yarnpkg/plugin-git"
13
+ - " @yarnpkg/plugin-github"
14
+ - " @yarnpkg/plugin-http"
15
+ - " @yarnpkg/plugin-init"
16
+ - " @yarnpkg/plugin-interactive-tools"
17
+ - " @yarnpkg/plugin-link"
18
+ - " @yarnpkg/plugin-nm"
19
+ - " @yarnpkg/plugin-npm"
20
+ - " @yarnpkg/plugin-npm-cli"
21
+ - " @yarnpkg/plugin-pack"
22
+ - " @yarnpkg/plugin-patch"
23
+ - " @yarnpkg/plugin-pnp"
24
+ - " @yarnpkg/plugin-pnpm"
25
+ - " @yarnpkg/plugin-stage"
26
+ - " @yarnpkg/plugin-typescript"
27
+ - " @yarnpkg/plugin-version"
28
+ - " @yarnpkg/plugin-workspace-tools"
29
+ - " @yarnpkg/builder"
30
+ - " @yarnpkg/doctor"
31
+ - " @yarnpkg/nm"
32
+ - " @yarnpkg/pnpify"
33
+ - " @yarnpkg/sdks"
Original file line number Diff line number Diff line change @@ -2036,14 +2036,6 @@ function applyVirtualResolutionMutations({
2036
2036
continue ;
2037
2037
}
2038
2038
2039
- // The stack overflow is checked against two level because a workspace
2040
- // may have a dev dependency on another workspace that lists the first
2041
- // one as a regular dependency. In this case the loop will break so we
2042
- // don't need to throw an exception.
2043
- const stackDepth = virtualStack . get ( pkg . locatorHash ) ;
2044
- if ( typeof stackDepth === `number` && stackDepth >= 2 )
2045
- reportStackOverflow ( ) ;
2046
-
2047
2039
let virtualizedDescriptor : Descriptor ;
2048
2040
let virtualizedPackage : Package ;
2049
2041
@@ -2122,6 +2114,15 @@ function applyVirtualResolutionMutations({
2122
2114
if ( ! allPackages . has ( virtualizedPackage . locatorHash ) )
2123
2115
return ;
2124
2116
2117
+ // The stack overflow is checked against two level because a workspace
2118
+ // may have a dev dependency on another workspace that lists the first
2119
+ // one as a regular dependency. In this case the loop will break so we
2120
+ // don't need to throw an exception.
2121
+ const stackDepth = virtualStack . get ( pkg . locatorHash ) ;
2122
+
2123
+ if ( typeof stackDepth === `number` && stackDepth >= 2 )
2124
+ reportStackOverflow ( ) ;
2125
+
2125
2126
const current = virtualStack . get ( pkg . locatorHash ) ;
2126
2127
const next = typeof current !== `undefined` ? current + 1 : 1 ;
2127
2128
You can’t perform that action at this time.
0 commit comments