@datapos/datapos-development 0.3.223 → 0.3.224
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.
|
@@ -7704,7 +7704,7 @@ async function Uh(e = !1) {
|
|
|
7704
7704
|
try {
|
|
7705
7705
|
Ne("Release Project");
|
|
7706
7706
|
const t = await St("package.json");
|
|
7707
|
-
await _r(t), await Lh(t), await Ae("3️⃣
|
|
7707
|
+
await _r(t), await Lh(t), await Ae("3️⃣ Bundle project.", "vite", ["build"]), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${t.version}"`]), await _e("git", ["push", "origin", "main:main"]), await Ae("", "npm", ["publish", "--access", "public"]), Ve(`Project version ${t.version} released.`);
|
|
7708
7708
|
} catch (t) {
|
|
7709
7709
|
console.error("❌ Error releasing project.", t), process.exit(1);
|
|
7710
7710
|
}
|
|
@@ -7730,10 +7730,10 @@ function qh() {
|
|
|
7730
7730
|
async function Lh(e) {
|
|
7731
7731
|
We("2️⃣ Build project configuration");
|
|
7732
7732
|
const t = await St("config.json");
|
|
7733
|
-
e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), await di("config.json", t), console.info("
|
|
7733
|
+
e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), await di("config.json", t), console.info("ⓘ Configuration built.");
|
|
7734
7734
|
}
|
|
7735
7735
|
async function _r(e, t = "./") {
|
|
7736
|
-
if (We("1️⃣
|
|
7736
|
+
if (We("1️⃣ Bump project version"), e.version == null)
|
|
7737
7737
|
e.version = "0.0.001", console.warn(`⚠️ Project version initialised to ${e.version}.`), await di(`${t}package.json`, e);
|
|
7738
7738
|
else {
|
|
7739
7739
|
const i = e.version, s = e.version.split(".");
|
package/package.json
CHANGED