monorepo-next 7.2.2 → 7.2.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-change-graph.js +1 -1
- package/src/build-release-graph.js +2 -1
- package/src/detach.js +2 -2
package/package.json
CHANGED
@@ -153,7 +153,7 @@ async function buildChangeGraph({
|
|
153
153
|
|
154
154
|
let dag = buildDAG(workspaceMeta, _package.packageName);
|
155
155
|
|
156
|
-
packagesWithChanges[
|
156
|
+
packagesWithChanges[_package.packageName] = {
|
157
157
|
changedFiles: newFiles,
|
158
158
|
changedReleasableFiles,
|
159
159
|
dag,
|
@@ -51,6 +51,7 @@ async function init({
|
|
51
51
|
shouldVersionBump = true,
|
52
52
|
}) {
|
53
53
|
let {
|
54
|
+
isPackage,
|
54
55
|
packageName: name,
|
55
56
|
cwd,
|
56
57
|
} = dag;
|
@@ -72,7 +73,7 @@ async function init({
|
|
72
73
|
}
|
73
74
|
|
74
75
|
let canBumpVersion = !!(version && name);
|
75
|
-
let canPublish =
|
76
|
+
let canPublish = isPackage;
|
76
77
|
let shouldBumpVersion = canBumpVersion && shouldVersionBump;
|
77
78
|
let shouldPublish = canPublish && shouldBumpVersion;
|
78
79
|
|
package/src/detach.js
CHANGED
@@ -68,7 +68,7 @@ async function detach({
|
|
68
68
|
choices,
|
69
69
|
}]);
|
70
70
|
|
71
|
-
let
|
71
|
+
let dependents = answers.map(answer => {
|
72
72
|
// switch to key/value instead of array?
|
73
73
|
let isPackage = answer !== workspaceKey;
|
74
74
|
|
@@ -80,7 +80,7 @@ async function detach({
|
|
80
80
|
// prevent loops
|
81
81
|
const attach = require('./attach');
|
82
82
|
|
83
|
-
for (let node of
|
83
|
+
for (let node of dependents) {
|
84
84
|
await attach({
|
85
85
|
package: path.basename(cwd),
|
86
86
|
cwd: node.cwd,
|