monorepo-next 8.0.0 → 8.0.3
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 +7 -7
- package/src/release.js +1 -1
package/package.json
CHANGED
@@ -123,7 +123,10 @@ async function secondPass({
|
|
123
123
|
let shouldVersionBump = !shouldExcludeDevChanges || !isDevDep;
|
124
124
|
|
125
125
|
if (dag.node.isPackage && shouldInheritGreaterReleaseType && !isDevDep && shouldBumpInRangeDependencies) {
|
126
|
-
|
126
|
+
// We use `defaultReleaseType` here instead of `parent.releaseType` because
|
127
|
+
// it doesn't matter, and it is less confusing. It gets overwritten with the correct
|
128
|
+
// value based on all dependencies later.
|
129
|
+
await init({ dag, releaseTrees, releaseType: defaultReleaseType });
|
127
130
|
} else if (!isReleaseTypeInRange(parent.oldVersion, parent.releaseType, dag.dependencyRange)) {
|
128
131
|
await init({ dag, releaseTrees, releaseType: defaultReleaseType, shouldVersionBump });
|
129
132
|
} else if (shouldBumpInRangeDependencies) {
|
@@ -221,11 +224,11 @@ function fourthPass({
|
|
221
224
|
|
222
225
|
for (let type of dependencyTypes) {
|
223
226
|
if (!current[type]) {
|
224
|
-
current[type] =
|
227
|
+
current[type] = {};
|
225
228
|
}
|
226
229
|
}
|
227
230
|
|
228
|
-
if (parent) {
|
231
|
+
if (parent && !current[dag.dependencyType][parent.name]) {
|
229
232
|
let { name } = parent;
|
230
233
|
|
231
234
|
let oldRange = dag.dependencyRange;
|
@@ -242,10 +245,7 @@ function fourthPass({
|
|
242
245
|
});
|
243
246
|
}
|
244
247
|
|
245
|
-
current[dag.dependencyType]
|
246
|
-
name,
|
247
|
-
newRange,
|
248
|
-
});
|
248
|
+
current[dag.dependencyType][name] = newRange;
|
249
249
|
}
|
250
250
|
|
251
251
|
for (let group of dag.node.dependents) {
|
package/src/release.js
CHANGED