@jsenv/monorepo 0.3.17 → 0.3.19
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/sync_packages_versions.js +16 -14
package/package.json
CHANGED
|
@@ -65,20 +65,6 @@ Use a tool like "git diff" to see the new versions and ensure this is what you w
|
|
|
65
65
|
dependencyUpdates,
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
if (toPublishPackageNames.length === 0) {
|
|
69
|
-
console.log(`${UNICODE.OK} packages are published on registry`);
|
|
70
|
-
} else {
|
|
71
|
-
console.log(
|
|
72
|
-
`${UNICODE.INFO} ${
|
|
73
|
-
toPublishPackageNames.length
|
|
74
|
-
} packages could be published
|
|
75
|
-
- ${toPublishPackageNames.map(
|
|
76
|
-
(name) => `${name}@${workspacePackages[name].packageObject.version}`,
|
|
77
|
-
).join(`
|
|
78
|
-
- `)}`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
68
|
const packageFilesToUpdate = {};
|
|
83
69
|
const updateDependencyVersion = ({
|
|
84
70
|
packageName,
|
|
@@ -204,9 +190,25 @@ Use a tool like "git diff" to see the new versions and ensure this is what you w
|
|
|
204
190
|
packageInfo.packageUrl,
|
|
205
191
|
),
|
|
206
192
|
});
|
|
193
|
+
if (!toPublishPackageNames.includes(packageName)) {
|
|
194
|
+
toPublishPackageNames.push(packageName);
|
|
195
|
+
}
|
|
207
196
|
}
|
|
208
197
|
});
|
|
209
198
|
}
|
|
199
|
+
if (toPublishPackageNames.length === 0) {
|
|
200
|
+
console.log(`${UNICODE.OK} packages are published on registry`);
|
|
201
|
+
} else {
|
|
202
|
+
console.log(
|
|
203
|
+
`${UNICODE.INFO} ${
|
|
204
|
+
toPublishPackageNames.length
|
|
205
|
+
} packages could be published
|
|
206
|
+
- ${toPublishPackageNames.map(
|
|
207
|
+
(name) => `${name}@${workspacePackages[name].packageObject.version}`,
|
|
208
|
+
).join(`
|
|
209
|
+
- `)}`,
|
|
210
|
+
);
|
|
211
|
+
}
|
|
210
212
|
Object.keys(packageFilesToUpdate).forEach((packageName) => {
|
|
211
213
|
const workspacePackage = workspacePackages[packageName];
|
|
212
214
|
workspacePackage.updateFile(workspacePackage.packageObject);
|