solforge 0.2.11 → 0.2.12
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/package.json +4 -4
- package/src/cli/main.ts +8 -2
- /package/{start.js → start.cjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solforge",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"url": "https://github.com/nitishxyz/solforge/issues"
|
|
14
14
|
},
|
|
15
15
|
"bin": {
|
|
16
|
-
"solforge": "start.
|
|
16
|
+
"solforge": "start.cjs"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
|
-
"start.
|
|
19
|
+
"start.cjs",
|
|
20
20
|
"scripts",
|
|
21
21
|
"src",
|
|
22
22
|
"server",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build:gui": "bun build src/gui/src/main.tsx --outdir src/gui/public/build --target=browser --minify",
|
|
38
38
|
"cli": "bun src/cli/main.ts",
|
|
39
39
|
"lint": "biome check",
|
|
40
|
-
"prepack": "chmod +x start.
|
|
40
|
+
"prepack": "chmod +x start.cjs || true"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@biomejs/biome": "2.2.4",
|
package/src/cli/main.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// Minimal, fast CLI router with @clack/prompts for UX
|
|
2
2
|
import * as p from "@clack/prompts";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { readFileSync } from "fs";
|
|
4
|
+
import { join, dirname } from "path";
|
|
5
|
+
import { fileURLToPath } from "url";
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const pkgPath = join(__dirname, "../../package.json");
|
|
9
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
|
|
10
|
+
const VERSION = pkg.version;
|
|
5
11
|
|
|
6
12
|
// Robust arg parsing for both bun script and compiled binary
|
|
7
13
|
const known = new Set([
|
/package/{start.js → start.cjs}
RENAMED
|
File without changes
|