@datapos/datapos-development 0.3.231 → 0.3.232
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.
|
@@ -7648,7 +7648,7 @@ async function Nh() {
|
|
|
7648
7648
|
We("Load environment variables"), (await import("dotenv")).config();
|
|
7649
7649
|
}
|
|
7650
7650
|
function Ne(e) {
|
|
7651
|
-
const t = "\x1B[36m", i = "\x1B[0m", s = "─".repeat(e.length +
|
|
7651
|
+
const t = "\x1B[36m", i = "\x1B[0m", s = "─".repeat(Math.max(e.length + 60, 60));
|
|
7652
7652
|
console.info(`
|
|
7653
7653
|
${t}${s}`), console.info(`▶️ ${e}`), console.info(`${s}${i}`);
|
|
7654
7654
|
}
|
|
@@ -7659,7 +7659,8 @@ function Ve(e) {
|
|
|
7659
7659
|
}
|
|
7660
7660
|
function We(e) {
|
|
7661
7661
|
console.info(`
|
|
7662
|
-
${e}
|
|
7662
|
+
${e}
|
|
7663
|
+
`);
|
|
7663
7664
|
}
|
|
7664
7665
|
async function St(e) {
|
|
7665
7666
|
return JSON.parse(await $.readFile(e, "utf8"));
|
|
@@ -7695,7 +7696,7 @@ async function Tr(e, t) {
|
|
|
7695
7696
|
}
|
|
7696
7697
|
async function $h() {
|
|
7697
7698
|
try {
|
|
7698
|
-
Ne("Build Project"), await Ae("", "vite", ["build"]), Ve("Project built.");
|
|
7699
|
+
Ne("Build Project"), await Ae("1️⃣ Bundle project", "vite", ["build"]), Ve("Project built.");
|
|
7699
7700
|
} catch (e) {
|
|
7700
7701
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
7701
7702
|
}
|
|
@@ -7704,7 +7705,7 @@ async function Uh(e = !1) {
|
|
|
7704
7705
|
try {
|
|
7705
7706
|
Ne("Release Project");
|
|
7706
7707
|
const t = await St("package.json");
|
|
7707
|
-
await _r("1️⃣", t), await Lh("2️⃣", t), await Ae("3️⃣ Bundle project
|
|
7708
|
+
await _r("1️⃣", t), await Lh("2️⃣", t), await Ae("3️⃣ Bundle project", "vite", ["build"]), await _e("4️⃣ Stage changes", "git", ["add", "."]), await _e("5️⃣ Commit changes", "git", ["commit", "-m", `"v${t.version}"`]), await _e("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), await Ae("7️⃣. Publish to npm", "npm", ["publish", "--access", "public"]), Ve(`Project version '${t.version}' released.`);
|
|
7708
7709
|
} catch (t) {
|
|
7709
7710
|
console.error("❌ Error releasing project.", t), process.exit(1);
|
|
7710
7711
|
}
|
package/package.json
CHANGED