monorepo-next 12.5.0 → 12.5.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepo-next",
3
- "version": "12.5.0",
3
+ "version": "12.5.2",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
package/src/build-dag.js CHANGED
@@ -67,14 +67,17 @@ function thirdPass({
67
67
 
68
68
  group.node.dependents.push(newGroup);
69
69
 
70
- if (group.node.isPackage) {
71
- thirdPass({
72
- workspaceMeta,
73
- group: newGroup,
74
- branch: newBranch,
75
- visitedNodes,
76
- });
77
- }
70
+ // We don't want to check if it's private here because
71
+ // you could have a chain of private packages, and you
72
+ // want to bump them all the way down.
73
+ // if (group.node.isPackage) {
74
+ thirdPass({
75
+ workspaceMeta,
76
+ group: newGroup,
77
+ branch: newBranch,
78
+ visitedNodes,
79
+ });
80
+ // }
78
81
  }
79
82
  }
80
83
  }
package/src/version.js CHANGED
@@ -18,14 +18,8 @@ function trackNewVersion({
18
18
  // https://github.com/npm/node-semver/commit/bcab95a966413b978dc1e7bdbcb8f495b63303cd
19
19
  range.set[0][0].operator
20
20
  ) {
21
- let hint = range.raw[0];
22
-
23
- if (hint !== '^' && hint !== '~') {
24
- hint = '~';
25
- }
26
-
27
21
  // This behaviour can probably be removed in the next major.
28
- newRange = `${hint}${newVersion}`;
22
+ newRange = `~${newVersion}`;
29
23
  } else if (
30
24
  // NOTE: wildcard range is empty string
31
25
  // SEE: https://github.com/npm/node-semver/blob/bcab95a966413b978dc1e7bdbcb8f495b63303cd/test/ranges/to-comparators.js#L10-L12