deplift 1.2.2 → 1.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/dist/cjs/index.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -148,12 +148,12 @@ async function main() {
|
|
|
148
148
|
console.log(` ⚠️ [skipped] ${pkg}: current (${current}) version is higher than the latest (${latest})`);
|
|
149
149
|
continue;
|
|
150
150
|
}
|
|
151
|
+
const [currentMajor] = extractSemVerParts(current);
|
|
151
152
|
const [latestMajor] = extractSemVerParts(latest);
|
|
152
|
-
if (latestMajor > majorCaps[pkg]) {
|
|
153
|
+
if (currentMajor <= majorCaps[pkg] && latestMajor > majorCaps[pkg]) {
|
|
153
154
|
console.log(` ⚠️ [skipped] ${pkg}: ${latest} is available, but the major version is capped at v${majorCaps[pkg]}`);
|
|
154
155
|
continue;
|
|
155
156
|
}
|
|
156
|
-
const [currentMajor] = extractSemVerParts(current);
|
|
157
157
|
console.log(` ${currentMajor === latestMajor ? '✔' : '🚨[major]'} ${pkg}(${section}): ${rawCurrent} → ^${latest}`);
|
|
158
158
|
updated = true;
|
|
159
159
|
if (!dryRun) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -146,12 +146,12 @@ async function main() {
|
|
|
146
146
|
console.log(` ⚠️ [skipped] ${pkg}: current (${current}) version is higher than the latest (${latest})`);
|
|
147
147
|
continue;
|
|
148
148
|
}
|
|
149
|
+
const [currentMajor] = extractSemVerParts(current);
|
|
149
150
|
const [latestMajor] = extractSemVerParts(latest);
|
|
150
|
-
if (latestMajor > majorCaps[pkg]) {
|
|
151
|
+
if (currentMajor <= majorCaps[pkg] && latestMajor > majorCaps[pkg]) {
|
|
151
152
|
console.log(` ⚠️ [skipped] ${pkg}: ${latest} is available, but the major version is capped at v${majorCaps[pkg]}`);
|
|
152
153
|
continue;
|
|
153
154
|
}
|
|
154
|
-
const [currentMajor] = extractSemVerParts(current);
|
|
155
155
|
console.log(` ${currentMajor === latestMajor ? '✔' : '🚨[major]'} ${pkg}(${section}): ${rawCurrent} → ^${latest}`);
|
|
156
156
|
updated = true;
|
|
157
157
|
if (!dryRun) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deplift",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "CLI to update deps in monorepos",
|
|
5
5
|
"author": "Zheng Song",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@babel/preset-typescript": "^7.28.5",
|
|
41
41
|
"@rollup/plugin-babel": "^6.1.0",
|
|
42
42
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
43
|
-
"@types/node": "^25.
|
|
43
|
+
"@types/node": "^25.3.0",
|
|
44
44
|
"@types/yargs": "^17.0.35",
|
|
45
|
-
"npm-run-
|
|
45
|
+
"npm-run-all2": "^8.0.4",
|
|
46
46
|
"prettier": "^3.8.1",
|
|
47
|
-
"rollup": "^4.
|
|
47
|
+
"rollup": "^4.58.0",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|