andysu 0.0.0-stage → 0.1.98

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/andysu.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ // Runs the static andysu binary for this platform, bundled under vendor/ by the release workflow.
3
+ "use strict";
4
+ const { spawnSync } = require("child_process");
5
+ const path = require("path");
6
+ const fs = require("fs");
7
+
8
+ const targets = {
9
+ "linux-x64": "x86_64-unknown-linux-musl",
10
+ "linux-arm64": "aarch64-unknown-linux-musl",
11
+ "darwin-x64": "x86_64-apple-darwin",
12
+ "darwin-arm64": "aarch64-apple-darwin",
13
+ };
14
+ const target = targets[`${process.platform}-${process.arch}`];
15
+ const bin = target && path.join(__dirname, "..", "vendor", `andysu-${target}`);
16
+ if (!bin || !fs.existsSync(bin)) {
17
+ console.error(`andysu: no bundled binary for ${process.platform}-${process.arch}`);
18
+ process.exit(1);
19
+ }
20
+ try {
21
+ fs.accessSync(bin, fs.constants.X_OK);
22
+ } catch {
23
+ fs.chmodSync(bin, 0o755);
24
+ }
25
+ const r = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
26
+ process.exit(r.status === null ? 1 : r.status);
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "andysu",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.98",
4
+ "description": "The AndySU command line (keygen, init, split, pack, publish, sign, verify) as an npm package",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/dixonSolutions/AndySU",
9
+ "directory": "cli/npm"
10
+ },
11
+ "bin": {
12
+ "andysu": "bin/andysu.js"
13
+ },
14
+ "files": [
15
+ "bin",
16
+ "vendor"
17
+ ],
18
+ "os": [
19
+ "linux",
20
+ "darwin"
21
+ ],
22
+ "cpu": [
23
+ "x64",
24
+ "arm64"
25
+ ],
26
+ "engines": {
27
+ "node": ">=18"
28
+ }
29
+ }
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.