@arcmantle/forge 0.1.0

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/forge.js ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require("child_process");
3
+ const path = require("path");
4
+ const os = require("os");
5
+
6
+ const ARCH_MAP = { "x64": "amd64", "arm64": "arm64" };
7
+ const OS_MAP = { "darwin": "darwin", "linux": "linux", "win32": "windows" };
8
+
9
+ const goOs = OS_MAP[os.platform()];
10
+ const goArch = ARCH_MAP[os.arch()];
11
+
12
+ if (!goOs || !goArch) {
13
+ console.error("forge: unsupported platform " + os.platform() + "/" + os.arch());
14
+ process.exit(1);
15
+ }
16
+
17
+ const ext = os.platform() === "win32" ? ".exe" : "";
18
+ const bin = path.join(__dirname, "..", "dist", "forge-" + goOs + "-" + goArch + ext);
19
+
20
+ const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
21
+ process.exit(result.status ?? 1);
@@ -0,0 +1,6 @@
1
+ 8b705f29726b6e460c7436e187bc99075e1b0c221de630f367bdd0c6e07a4309 forge-darwin-amd64
2
+ 0373175085567d2050337f4e6ca21a0357f02f7e0eb1aefbeec604477e39c960 forge-darwin-arm64
3
+ cf614ede4f10cf067d767bdcfba65f4624fe740154fe3c5109f07681051a2bce forge-linux-amd64
4
+ 6a980d4afab917cc931ec41ddabeac12599f3c67f9ce7e58888eae10e28db3d3 forge-linux-arm64
5
+ 1a3b9e46c25d1958e6b70de6ed0d51d52580a99474d1dad40f395996fc2e92ba forge-windows-amd64.exe
6
+ 7a348698b9604374ca3f618d7f36f4b789ae684e5921fb5c709cd27386dba856 forge-windows-arm64.exe
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@arcmantle/forge",
3
+ "version": "0.1.0",
4
+ "description": "Universal repo script runner",
5
+ "bin": {
6
+ "forge": "bin/forge.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ "dist/"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ }
15
+ }