@jsenv/monorepo 0.0.2 → 0.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
CHANGED
|
@@ -26,6 +26,11 @@ export const upgradeExternalVersions = async ({ directoryUrl }) => {
|
|
|
26
26
|
) {
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
+
// "*" means package accept anything
|
|
30
|
+
// so there is no need to update it, it's always matching the latest version
|
|
31
|
+
if (version === "*") {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
29
34
|
const existing = externalPackages[name];
|
|
30
35
|
if (existing) {
|
|
31
36
|
externalPackages[name].push({
|
|
@@ -151,11 +156,13 @@ export const upgradeExternalVersions = async ({ directoryUrl }) => {
|
|
|
151
156
|
internalPackage.updateFile(internalPackage.packageObject);
|
|
152
157
|
});
|
|
153
158
|
if (updates.length === 0) {
|
|
154
|
-
console.log(
|
|
159
|
+
console.log(
|
|
160
|
+
`${UNICODE.OK} all versions declared in package.json files are in up-to-date with registry`,
|
|
161
|
+
);
|
|
155
162
|
} else {
|
|
156
163
|
console.log(
|
|
157
164
|
`${UNICODE.INFO} ${updates.length} versions modified in package.json files
|
|
158
|
-
|
|
165
|
+
Use a tool like "git diff" to review these changes then run "npm install"`,
|
|
159
166
|
);
|
|
160
167
|
}
|
|
161
168
|
return updates;
|