monorepo-next 8.0.4 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/build-release-graph.js +24 -0
package/package.json
CHANGED
@@ -122,6 +122,8 @@ async function secondPass({
|
|
122
122
|
shouldInheritGreaterReleaseType,
|
123
123
|
shouldExcludeDevChanges,
|
124
124
|
}) {
|
125
|
+
let visitedNodes = new Set();
|
126
|
+
|
125
127
|
for (let { dag, changedReleasableFiles } of packagesWithChanges) {
|
126
128
|
if (!changedReleasableFiles.length) {
|
127
129
|
continue;
|
@@ -131,6 +133,12 @@ async function secondPass({
|
|
131
133
|
dag,
|
132
134
|
parent,
|
133
135
|
}) {
|
136
|
+
if (visitedNodes.has(dag.node.packageName)) {
|
137
|
+
return;
|
138
|
+
}
|
139
|
+
|
140
|
+
visitedNodes.add(dag.node.packageName);
|
141
|
+
|
134
142
|
let doesPackageHaveChanges = !!releaseTrees[dag.node.packageName];
|
135
143
|
if (!doesPackageHaveChanges) {
|
136
144
|
let isDevDep = dag.dependencyType === 'devDependencies';
|
@@ -174,6 +182,8 @@ function thirdPass({
|
|
174
182
|
shouldInheritGreaterReleaseType,
|
175
183
|
shouldExcludeDevChanges,
|
176
184
|
}) {
|
185
|
+
let visitedNodes = new Set();
|
186
|
+
|
177
187
|
for (let { dag, changedReleasableFiles } of packagesWithChanges) {
|
178
188
|
if (!changedReleasableFiles.length) {
|
179
189
|
continue;
|
@@ -183,6 +193,12 @@ function thirdPass({
|
|
183
193
|
dag,
|
184
194
|
parent,
|
185
195
|
}) {
|
196
|
+
if (visitedNodes.has(dag.node.packageName)) {
|
197
|
+
// return;
|
198
|
+
}
|
199
|
+
|
200
|
+
visitedNodes.add(dag.node.packageName);
|
201
|
+
|
186
202
|
let current = releaseTrees[dag.node.packageName];
|
187
203
|
|
188
204
|
if (!current) {
|
@@ -226,6 +242,8 @@ function fourthPass({
|
|
226
242
|
packagesWithChanges,
|
227
243
|
shouldBumpInRangeDependencies,
|
228
244
|
}) {
|
245
|
+
let visitedNodes = new Set();
|
246
|
+
|
229
247
|
for (let { dag, changedReleasableFiles } of packagesWithChanges) {
|
230
248
|
if (!changedReleasableFiles.length) {
|
231
249
|
continue;
|
@@ -235,6 +253,12 @@ function fourthPass({
|
|
235
253
|
dag,
|
236
254
|
parent,
|
237
255
|
}) {
|
256
|
+
if (visitedNodes.has(dag.node.packageName)) {
|
257
|
+
// return;
|
258
|
+
}
|
259
|
+
|
260
|
+
visitedNodes.add(dag.node.packageName);
|
261
|
+
|
238
262
|
let current = releaseTrees[dag.node.packageName];
|
239
263
|
|
240
264
|
if (!current) {
|