@levimc/lip 0.0.0-stage → 0.34.3

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.
Binary file
Binary file
package/darwin-x64/lip ADDED
Binary file
Binary file
Binary file
Binary file
package/linux-x64/lip ADDED
Binary file
package/linux-x64/lipd ADDED
Binary file
package/lip.js ADDED
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require("node:child_process");
4
+ const fs = require("node:fs");
5
+ const path = require("node:path");
6
+ const process = require("node:process");
7
+
8
+ const target = `${process.platform}:${process.arch}`;
9
+ const supportedTargets = new Set([
10
+ "linux:x64",
11
+ "linux:arm64",
12
+ "darwin:x64",
13
+ "darwin:arm64",
14
+ "win32:x64",
15
+ "win32:arm64"
16
+ ]);
17
+
18
+ if (!supportedTargets.has(target)) {
19
+ console.error(`Unsupported platform: ${target}`);
20
+ process.exit(1);
21
+ }
22
+
23
+ const binaryPath = path.join(
24
+ __dirname,
25
+ `${process.platform}-${process.arch}`,
26
+ process.platform === "win32" ? "lip.exe" : "lip"
27
+ );
28
+
29
+ if (!fs.existsSync(binaryPath)) {
30
+ console.error(`Missing bundled binary for ${target}: ${binaryPath}`);
31
+ process.exit(1);
32
+ }
33
+
34
+ const child = spawn(binaryPath, process.argv.slice(2), { stdio: "inherit" });
35
+ child.on("error", (error) => {
36
+ console.error(error.message);
37
+ process.exit(1);
38
+ });
39
+ child.on("exit", (code, signal) => {
40
+ if (signal) {
41
+ process.kill(process.pid, signal);
42
+ return;
43
+ }
44
+ process.exit(code ?? 1);
45
+ });
package/lipd.js ADDED
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require("node:child_process");
4
+ const fs = require("node:fs");
5
+ const path = require("node:path");
6
+ const process = require("node:process");
7
+
8
+ const target = `${process.platform}:${process.arch}`;
9
+ const supportedTargets = new Set([
10
+ "linux:x64",
11
+ "linux:arm64",
12
+ "darwin:x64",
13
+ "darwin:arm64",
14
+ "win32:x64",
15
+ "win32:arm64"
16
+ ]);
17
+
18
+ if (!supportedTargets.has(target)) {
19
+ console.error(`Unsupported platform: ${target}`);
20
+ process.exit(1);
21
+ }
22
+
23
+ const binaryPath = path.join(
24
+ __dirname,
25
+ `${process.platform}-${process.arch}`,
26
+ process.platform === "win32" ? "lipd.exe" : "lipd"
27
+ );
28
+
29
+ if (!fs.existsSync(binaryPath)) {
30
+ console.error(`Missing bundled binary for ${target}: ${binaryPath}`);
31
+ process.exit(1);
32
+ }
33
+
34
+ const child = spawn(binaryPath, process.argv.slice(2), { stdio: "inherit" });
35
+ child.on("error", (error) => {
36
+ console.error(error.message);
37
+ process.exit(1);
38
+ });
39
+ child.on("exit", (code, signal) => {
40
+ if (signal) {
41
+ process.kill(process.pid, signal);
42
+ return;
43
+ }
44
+ process.exit(code ?? 1);
45
+ });
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "@levimc/lip",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.34.3",
4
+ "license": "GPL-3.0-only",
5
+ "description": "A general package installer",
6
+ "homepage": "https://github.com/futrime/lip",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/futrime/lip.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/futrime/lip/issues"
13
+ },
14
+ "bin": {
15
+ "lip": "lip.js",
16
+ "lipd": "lipd.js"
17
+ },
18
+ "files": [
19
+ "lip.js",
20
+ "lipd.js",
21
+ "linux-*/*",
22
+ "darwin-*/*",
23
+ "win32-*/*"
24
+ ],
25
+ "engines": {
26
+ "node": ">=18"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ }
31
+ }
Binary file
Binary file
Binary file
Binary file
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.