gorsee 0.1.1 → 0.1.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.
package/bin/gorsee.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from "child_process";
3
+ import { join, dirname } from "path";
4
+ import { fileURLToPath } from "url";
5
+
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+ const cli = join(__dirname, "..", "src", "cli", "index.ts");
8
+ const args = process.argv.slice(2).join(" ");
9
+
10
+ try {
11
+ execSync(`bun ${cli} ${args}`, { stdio: "inherit" });
12
+ } catch (e) {
13
+ process.exit(e.status || 1);
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gorsee",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Full-stack TypeScript framework — islands, reactive WebSocket, optimistic mutations, built-in auth, type-safe routes",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "web-framework"
23
23
  ],
24
24
  "bin": {
25
- "gorsee": "./bin/gorsee"
25
+ "gorsee": "./bin/gorsee.js"
26
26
  },
27
27
  "exports": {
28
28
  ".": "./src/index.ts",
package/bin/gorsee DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env bun
2
- import("../src/cli/index.ts")