@clickzetta/cz-cli 0.3.26 → 0.3.28
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/bin/postinstall.js +9 -0
- package/package.json +6 -6
package/bin/postinstall.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
+
const { execFileSync } = require("child_process");
|
|
4
5
|
const fs = require("fs");
|
|
5
6
|
const path = require("path");
|
|
6
7
|
const os = require("os");
|
|
@@ -9,6 +10,7 @@ const home = os.homedir();
|
|
|
9
10
|
const platform = os.platform();
|
|
10
11
|
const arch = os.arch() === "x64" ? "x64" : "arm64";
|
|
11
12
|
const pkgName = `@clickzetta/cz-cli-${platform}-${arch}`;
|
|
13
|
+
const binName = platform === "win32" ? "cz-cli.exe" : "cz-cli";
|
|
12
14
|
|
|
13
15
|
try {
|
|
14
16
|
const pkgDir = path.dirname(require.resolve(`${pkgName}/package.json`));
|
|
@@ -77,6 +79,13 @@ try {
|
|
|
77
79
|
fs.cpSync(src, dest, { recursive: true });
|
|
78
80
|
} catch (e) {}
|
|
79
81
|
}
|
|
82
|
+
|
|
83
|
+
try {
|
|
84
|
+
execFileSync(path.join(pkgDir, "bin", binName), [], {
|
|
85
|
+
stdio: "ignore",
|
|
86
|
+
env: { ...process.env, CLICKZETTA_MIGRATE_PROFILES_ONLY: "1" },
|
|
87
|
+
});
|
|
88
|
+
} catch (e) {}
|
|
80
89
|
} catch (e) {
|
|
81
90
|
// Non-fatal: don't block npm install
|
|
82
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickzetta/cz-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.28",
|
|
4
4
|
"description": "AI-Agent-friendly CLI for ClickZetta Lakehouse",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cz-cli": "bin/run.js"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": ["bin/"],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@clickzetta/cz-cli-darwin-arm64": "0.3.
|
|
14
|
-
"@clickzetta/cz-cli-darwin-x64": "0.3.
|
|
15
|
-
"@clickzetta/cz-cli-linux-arm64": "0.3.
|
|
16
|
-
"@clickzetta/cz-cli-linux-x64": "0.3.
|
|
17
|
-
"@clickzetta/cz-cli-win32-x64": "0.3.
|
|
13
|
+
"@clickzetta/cz-cli-darwin-arm64": "0.3.28",
|
|
14
|
+
"@clickzetta/cz-cli-darwin-x64": "0.3.28",
|
|
15
|
+
"@clickzetta/cz-cli-linux-arm64": "0.3.28",
|
|
16
|
+
"@clickzetta/cz-cli-linux-x64": "0.3.28",
|
|
17
|
+
"@clickzetta/cz-cli-win32-x64": "0.3.28"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"repository": {
|