@datapos/datapos-development 0.3.227 → 0.3.229

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.
@@ -7642,7 +7642,7 @@ async function _e(e, t, i = [], s) {
7642
7642
  const a = `${t} ${i.join(" ")}`;
7643
7643
  We(`${e}. Execute command: '${a}'`);
7644
7644
  const { stdout: o, stderr: h } = await Eh(a);
7645
- o.trim() && console.log(o.trim()), h.trim() && console.error(h.trim());
7645
+ s === void 0 ? o.trim() && console.log(o.trim()) : await $.writeFile(s, o.trim(), "utf8"), h.trim() && console.error(h.trim());
7646
7646
  }
7647
7647
  async function Nh() {
7648
7648
  We("Load environment variables"), (await import("dotenv")).config();
@@ -7668,7 +7668,7 @@ async function li(e) {
7668
7668
  return await $.readFile(e, "utf8");
7669
7669
  }
7670
7670
  async function Ae(e, t, i = [], s = !1) {
7671
- return We(`${e}. Spawn command: ${t} ${i.join(" ")}`), new Promise((a, o) => {
7671
+ return We(`${e}. Spawn command: '${t} ${i.join(" ")}'`), new Promise((a, o) => {
7672
7672
  Nr(t, i, { stdio: "inherit" }).on("close", (d) => {
7673
7673
  d === 0 || s ? a() : o(new Error(`${t} exited with code ${d}`));
7674
7674
  });
@@ -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("1️⃣", t), await Lh("2️⃣", 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.`);
7707
+ await _r("1️⃣", t), await Lh("2️⃣", 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
  }
@@ -7713,7 +7713,7 @@ async function Zh() {
7713
7713
  try {
7714
7714
  Ne("Synchronise Project with GitHub");
7715
7715
  const e = await St("package.json");
7716
- We("Bump project version"), await _r("1️⃣", e), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]), Ve(`Project version ${e.version} synchronised with GitHub.`);
7716
+ We("Bump project version"), await _r("1️⃣", e), await _e("2️⃣ Stage changes", "git", ["add", "."]), await _e("3️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await _e("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), Ve(`Project version ${e.version} synchronised with GitHub.`);
7717
7717
  } catch (e) {
7718
7718
  console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
7719
7719
  }
@@ -7811,14 +7811,16 @@ async function Kh(e) {
7811
7811
  Ne("Document Dependencies");
7812
7812
  const t = e.flatMap((i) => ["--allowed", i]);
7813
7813
  await _e(
7814
+ "",
7814
7815
  "license-report",
7815
7816
  ["--only=prod,peer", "--output=json", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
7816
7817
  "licenses.json"
7817
- ), await _e("license-report", ["--config", "license-report-config.json", "--only=prod,peer", "--output=markdown"], "licenses.md"), await _e("license-report-check", ["--source", "./licenses.json", "--output=table", ...t]), await _e(
7818
+ ), await _e("", "license-report", ["--config", "license-report-config.json", "--only=prod,peer", "--output=markdown"], "licenses.md"), await _e("", "license-report-check", ["--source", "./licenses.json", "--output=table", ...t]), await _e(
7819
+ "",
7818
7820
  "license-report-recursive",
7819
7821
  ["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
7820
7822
  "licenseTree.json"
7821
- ), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), We("Insert licenses into 'README.md'"), await Dh(), Ve("Document dependencies complete.");
7823
+ ), await _e("", "license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), We("Insert licenses into 'README.md'"), await Dh(), Ve("Document dependencies complete.");
7822
7824
  } catch (t) {
7823
7825
  console.error("❌ Error documenting dependencies.", t), process.exit(1);
7824
7826
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.227",
3
+ "version": "0.3.229",
4
4
  "description": "A library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",