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 CHANGED
@@ -133,9 +133,26 @@ async function install() {
133
133
 
134
134
  console.log(`deepdeps installed successfully`);
135
135
  } catch (err) {
136
- console.error("Installation failed:", err.message);
137
- console.error("Please install via cargo: cargo install deepdeps");
138
- process.exit(1);
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.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.1/deepdeps-x86_64-unknown-linux-gnu.tar.gz"
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.1/deepdeps-aarch64-unknown-linux-gnu.tar.gz"
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.1/deepdeps-x86_64-apple-darwin.tar.gz"
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.1/deepdeps-aarch64-apple-darwin.tar.gz"
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.1/deepdeps-x86_64-pc-windows-msvc.zip"
20
+ "url": "https://github.com/Sqrilizz/deepdeps/releases/download/v0.1.2/deepdeps-x86_64-pc-windows-msvc.zip"
21
21
  }
22
22
  }