@akanjs/cli 0.9.58-canary.1 → 0.9.58
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 +2 -2
- package/esm/index.js +2 -2
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -5831,12 +5831,12 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
|
|
|
5831
5831
|
const tag = isOfficialRelease ? "latest" : patchVersionOfBase.split("-").at(1) ?? "dev";
|
|
5832
5832
|
const getNextVersion = async (prefix, tag2) => {
|
|
5833
5833
|
try {
|
|
5834
|
-
const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base", { version:
|
|
5834
|
+
const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base", { version: prefix });
|
|
5835
5835
|
const latestPatch = parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "0");
|
|
5836
5836
|
const nextVersion2 = `${prefix}.${latestPatch + 1}`;
|
|
5837
5837
|
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
5838
5838
|
} catch (e) {
|
|
5839
|
-
return { nextVersion: `${prefix}.
|
|
5839
|
+
return { nextVersion: `${prefix}.0`, latestPublishedVersion: null };
|
|
5840
5840
|
}
|
|
5841
5841
|
};
|
|
5842
5842
|
const { nextVersion, latestPublishedVersion } = await getNextVersion(targetVersionPrefix, tag);
|
package/esm/index.js
CHANGED
|
@@ -5812,12 +5812,12 @@ ${chalk6.green("\u27A4")} Authentication Required`));
|
|
|
5812
5812
|
const tag = isOfficialRelease ? "latest" : patchVersionOfBase.split("-").at(1) ?? "dev";
|
|
5813
5813
|
const getNextVersion = async (prefix, tag2) => {
|
|
5814
5814
|
try {
|
|
5815
|
-
const latestPublishedVersionOfBase = await latestVersion("@akanjs/base", { version:
|
|
5815
|
+
const latestPublishedVersionOfBase = await latestVersion("@akanjs/base", { version: prefix });
|
|
5816
5816
|
const latestPatch = parseInt(latestPublishedVersionOfBase.split(".").at(-1) ?? "0");
|
|
5817
5817
|
const nextVersion2 = `${prefix}.${latestPatch + 1}`;
|
|
5818
5818
|
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
5819
5819
|
} catch (e) {
|
|
5820
|
-
return { nextVersion: `${prefix}.
|
|
5820
|
+
return { nextVersion: `${prefix}.0`, latestPublishedVersion: null };
|
|
5821
5821
|
}
|
|
5822
5822
|
};
|
|
5823
5823
|
const { nextVersion, latestPublishedVersion } = await getNextVersion(targetVersionPrefix, tag);
|