@akanjs/cli 0.9.59 → 0.9.60-canary.0
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/cjs/index.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -5837,7 +5837,7 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
|
|
|
5837
5837
|
const getNextVersion = async (prefix, tag2) => {
|
|
5838
5838
|
try {
|
|
5839
5839
|
const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base", { version: tag2 });
|
|
5840
|
-
const latestPatch = parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "
|
|
5840
|
+
const latestPatch = latestPublishedVersionOfBase.startsWith(prefix) ? parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "-1") : -1;
|
|
5841
5841
|
const nextVersion2 = `${prefix}.${latestPatch + 1}`;
|
|
5842
5842
|
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
5843
5843
|
} catch (e) {
|
package/esm/index.js
CHANGED
|
@@ -5818,7 +5818,7 @@ ${chalk6.green("\u27A4")} Authentication Required`));
|
|
|
5818
5818
|
const getNextVersion = async (prefix, tag2) => {
|
|
5819
5819
|
try {
|
|
5820
5820
|
const latestPublishedVersionOfBase = await latestVersion("@akanjs/base", { version: tag2 });
|
|
5821
|
-
const latestPatch = parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "
|
|
5821
|
+
const latestPatch = latestPublishedVersionOfBase.startsWith(prefix) ? parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "-1") : -1;
|
|
5822
5822
|
const nextVersion2 = `${prefix}.${latestPatch + 1}`;
|
|
5823
5823
|
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
5824
5824
|
} catch (e) {
|