@golar/astro 0.0.7 → 0.0.9

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.
@@ -0,0 +1,10 @@
1
+ import process from "node:process";
2
+ import { fileURLToPath } from "node:url";
3
+
4
+ //#region src/golar-entry.ts
5
+ function getGolarEntry() {
6
+ return [fileURLToPath(import.meta.resolve(`@golar/astro-${process.platform}-${process.arch}/golar-astro${process.platform === "win32" ? ".exe" : ""}`))];
7
+ }
8
+
9
+ //#endregion
10
+ export { getGolarEntry };
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@golar/astro",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
- "golarBin": "./dist/bin.js",
5
+ "exports": {
6
+ "./golar-entry": "./dist/golar-entry.js"
7
+ },
6
8
  "files": [
7
9
  "./dist"
8
10
  ],
@@ -16,17 +18,14 @@
16
18
  "bugs": "https://github.com/auvred/golar/issues",
17
19
  "homepage": "https://github.com/auvred/golar/tree/main/packages/astro#readme",
18
20
  "publishConfig": {
19
- "access": "public",
20
- "executableFiles": [
21
- "./dist/bin.js"
22
- ]
21
+ "access": "public"
23
22
  },
24
23
  "optionalDependencies": {
25
- "@golar/astro-win32-x64": "0.0.7",
26
- "@golar/astro-linux-x64": "0.0.7",
27
- "@golar/astro-darwin-x64": "0.0.7",
28
- "@golar/astro-darwin-arm64": "0.0.7",
29
- "@golar/astro-linux-arm64": "0.0.7",
30
- "@golar/astro-win32-arm64": "0.0.7"
24
+ "@golar/astro-win32-x64": "0.0.9",
25
+ "@golar/astro-win32-arm64": "0.0.9",
26
+ "@golar/astro-linux-x64": "0.0.9",
27
+ "@golar/astro-linux-arm64": "0.0.9",
28
+ "@golar/astro-darwin-arm64": "0.0.9",
29
+ "@golar/astro-darwin-x64": "0.0.9"
31
30
  }
32
31
  }
package/dist/bin.js DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import process from "node:process";
3
- import child_process from "node:child_process";
4
- import { fileURLToPath } from "node:url";
5
-
6
- //#region src/bin.ts
7
- const exePath = fileURLToPath(import.meta.resolve(`@golar/astro-${process.platform}-${process.arch}/golar-astro${process.platform === "win32" ? ".exe" : ""}`));
8
- try {
9
- child_process.execFileSync(exePath, process.argv.slice(2), { stdio: "inherit" });
10
- } catch (e) {
11
- if (e instanceof Error) {
12
- if ("status" in e && typeof e.status === "number") process.exit(e.status);
13
- }
14
- throw e;
15
- }
16
-
17
- //#endregion
18
- export { };