@datapos/datapos-development 0.3.226 → 0.3.228
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.
|
@@ -7638,11 +7638,11 @@ function Ih(e) {
|
|
|
7638
7638
|
Mr.includes(s) && (t = !0), Or.includes(s) && (i = !0);
|
|
7639
7639
|
return t && i ? "bidirectional" : t ? "source" : i ? "destination" : "unknown";
|
|
7640
7640
|
}
|
|
7641
|
-
async function _e(e, t = [],
|
|
7642
|
-
const
|
|
7643
|
-
We(
|
|
7644
|
-
const { stdout:
|
|
7645
|
-
|
|
7641
|
+
async function _e(e, t, i = [], s) {
|
|
7642
|
+
const a = `${t} ${i.join(" ")}`;
|
|
7643
|
+
We(`${e}. Execute command: '${a}'`);
|
|
7644
|
+
const { stdout: o, stderr: h } = await Eh(a);
|
|
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();
|
|
@@ -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("", "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.`);
|
|
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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConnectorOperation, ConnectorUsageId } from '@datapos/datapos-shared';
|
|
2
2
|
declare function extractOperationsFromSource<T>(source: string): T[];
|
|
3
3
|
declare function determineConnectorUsageId(operations: ConnectorOperation[]): ConnectorUsageId;
|
|
4
|
-
declare function execCommand(command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
|
|
4
|
+
declare function execCommand(label: string, command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
|
|
5
5
|
declare function loadEnvironmentVariables(): Promise<void>;
|
|
6
6
|
declare function logOperationHeader(text: string): void;
|
|
7
7
|
declare function logOperationSuccess(message: string): void;
|
package/package.json
CHANGED