deepdeps 0.1.1 → 0.1.2
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/install.js +20 -3
- package/package.json +2 -3
- package/platforms.json +5 -5
package/install.js
CHANGED
|
@@ -133,9 +133,26 @@ async function install() {
|
|
|
133
133
|
|
|
134
134
|
console.log(`deepdeps installed successfully`);
|
|
135
135
|
} catch (err) {
|
|
136
|
-
console.error("
|
|
137
|
-
console.
|
|
138
|
-
|
|
136
|
+
console.error("Download failed:", err.message);
|
|
137
|
+
console.log("Falling back to cargo install...");
|
|
138
|
+
try {
|
|
139
|
+
execSync(
|
|
140
|
+
`cargo install --git https://github.com/Sqrilizz/deepdeps --tag v${require("./package.json").version}`,
|
|
141
|
+
{ stdio: "inherit" },
|
|
142
|
+
);
|
|
143
|
+
// Copy the cargo-installed binary to our bin dir
|
|
144
|
+
const cargoBin = `/usr/local/cargo/bin/${binaryName}`;
|
|
145
|
+
if (existsSync(cargoBin)) {
|
|
146
|
+
renameSync(cargoBin, binaryPath);
|
|
147
|
+
}
|
|
148
|
+
console.log("deepdeps installed successfully via cargo");
|
|
149
|
+
} catch (cargoErr) {
|
|
150
|
+
console.error("cargo install also failed:", cargoErr.message);
|
|
151
|
+
console.error(
|
|
152
|
+
"Please install manually: cargo install --git https://github.com/Sqrilizz/deepdeps",
|
|
153
|
+
);
|
|
154
|
+
process.exit(1);
|
|
155
|
+
}
|
|
139
156
|
}
|
|
140
157
|
}
|
|
141
158
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepdeps",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "See what you're really installing — dependency analysis tool",
|
|
5
5
|
"bin": {
|
|
6
6
|
"deepdeps": "bin/deepdeps.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"install": "node install.js"
|
|
10
|
-
"postinstall": "node bin/deepdeps.js --help || true"
|
|
9
|
+
"install": "node install.js"
|
|
11
10
|
},
|
|
12
11
|
"files": [
|
|
13
12
|
"bin",
|
package/platforms.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"linux-x64": {
|
|
3
3
|
"rust-target": "x86_64-unknown-linux-gnu",
|
|
4
|
-
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.
|
|
4
|
+
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.2/deepdeps-x86_64-unknown-linux-gnu.tar.gz"
|
|
5
5
|
},
|
|
6
6
|
"linux-arm64": {
|
|
7
7
|
"rust-target": "aarch64-unknown-linux-gnu",
|
|
8
|
-
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.
|
|
8
|
+
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.2/deepdeps-aarch64-unknown-linux-gnu.tar.gz"
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"rust-target": "x86_64-apple-darwin",
|
|
12
|
-
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.
|
|
12
|
+
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.2/deepdeps-x86_64-apple-darwin.tar.gz"
|
|
13
13
|
},
|
|
14
14
|
"darwin-arm64": {
|
|
15
15
|
"rust-target": "aarch64-apple-darwin",
|
|
16
|
-
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.
|
|
16
|
+
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.2/deepdeps-aarch64-apple-darwin.tar.gz"
|
|
17
17
|
},
|
|
18
18
|
"win32-x64": {
|
|
19
19
|
"rust-target": "x86_64-pc-windows-msvc",
|
|
20
|
-
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.
|
|
20
|
+
"url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.2/deepdeps-x86_64-pc-windows-msvc.zip"
|
|
21
21
|
}
|
|
22
22
|
}
|