@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 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) ?? "0");
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) ?? "0");
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) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "0.9.59",
5
+ "version": "0.9.60-canary.0",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },