renview 0.0.5 → 0.0.7
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/package.json +6 -6
- package/postinstall.mjs +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "renview",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "帮助人类降低认知负担的代码审核工具",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"x64"
|
|
20
20
|
],
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"renview-darwin-arm64": "0.0.
|
|
23
|
-
"renview-darwin-x64": "0.0.
|
|
24
|
-
"renview-linux-x64": "0.0.
|
|
25
|
-
"renview-linux-arm64": "0.0.
|
|
26
|
-
"renview-windows-x64": "0.0.
|
|
22
|
+
"renview-darwin-arm64": "0.0.7",
|
|
23
|
+
"renview-darwin-x64": "0.0.7",
|
|
24
|
+
"renview-linux-x64": "0.0.7",
|
|
25
|
+
"renview-linux-arm64": "0.0.7",
|
|
26
|
+
"renview-windows-x64": "0.0.7"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
package/postinstall.mjs
CHANGED
|
@@ -82,7 +82,8 @@ async function fromRegistry() {
|
|
|
82
82
|
// win10+ 自带 bsdtar,macOS/Linux 必有 tar
|
|
83
83
|
execFileSync("tar", ["-xzf", tgz, "-C", tmp], { stdio: "ignore" });
|
|
84
84
|
const extracted = path.join(tmp, "package", "bin", binName);
|
|
85
|
-
if (!fs.existsSync(extracted))
|
|
85
|
+
if (!fs.existsSync(extracted))
|
|
86
|
+
fail(`tarball of ${platformPkg}@${version} has no bin/${binName}`);
|
|
86
87
|
linkBinary(extracted);
|
|
87
88
|
} finally {
|
|
88
89
|
fs.rmSync(tmp, { recursive: true, force: true });
|
|
@@ -93,7 +94,9 @@ const local = fromOptionalDependency();
|
|
|
93
94
|
if (local) {
|
|
94
95
|
linkBinary(local);
|
|
95
96
|
} else {
|
|
96
|
-
console.warn(
|
|
97
|
+
console.warn(
|
|
98
|
+
`renview: optional dependency ${platformPkg} not installed, downloading from registry…`,
|
|
99
|
+
);
|
|
97
100
|
try {
|
|
98
101
|
await fromRegistry();
|
|
99
102
|
} catch (e) {
|