@rexeus/typeweaver 0.5.0 → 0.6.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/dist/entry.mjs ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ //#region src/runtime.ts
3
+ const detectRuntime = () => {
4
+ if (typeof Deno !== "undefined") return "deno";
5
+ if (typeof Bun !== "undefined") return "bun";
6
+ return "node";
7
+ };
8
+ const getRuntimeDisplayName = (runtime) => {
9
+ return {
10
+ node: "Node.js",
11
+ deno: "Deno",
12
+ bun: "Bun"
13
+ }[runtime];
14
+ };
15
+
16
+ //#endregion
17
+ //#region src/entry.ts
18
+ const main = async () => {
19
+ const runtime = detectRuntime();
20
+ console.info(`Running on ${getRuntimeDisplayName(runtime)}`);
21
+ if (runtime === "node") await import("./tsx-loader-DUG5if6z.mjs");
22
+ await import("./cli-Cs-6XYwL.mjs");
23
+ };
24
+ main().catch((error) => {
25
+ console.error("Failed to start TypeWeaver CLI:", error);
26
+ process.exit(1);
27
+ });
28
+
29
+ //#endregion
30
+ export { };
package/dist/index.cjs CHANGED
@@ -1,2 +1 @@
1
- 'use strict';
2
-
1
+ require('./cli.cjs');
package/dist/index.d.cts CHANGED
@@ -1,2 +1 @@
1
-
2
- export { }
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import "./cli.mjs";
2
+
3
+ export { };
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import "tsx";
3
+
4
+ export { };
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@rexeus/typeweaver",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "🧵✨ Typeweaver CLI. Entry point into the Typeweaver framework to scaffold, validate, and generate API assets.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.cjs",
8
- "module": "dist/index.js",
9
- "types": "dist/index.d.ts",
8
+ "module": "dist/index.mjs",
9
+ "types": "dist/index.d.mts",
10
10
  "exports": {
11
11
  ".": {
12
12
  "import": {
13
- "types": "./dist/index.d.ts",
14
- "default": "./dist/index.js"
13
+ "types": "./dist/index.d.mts",
14
+ "default": "./dist/index.mjs"
15
15
  },
16
16
  "require": {
17
17
  "types": "./dist/index.d.cts",
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "bin": {
23
- "typeweaver": "./dist/entry.js"
23
+ "typeweaver": "./dist/entry.mjs"
24
24
  },
25
25
  "files": [
26
26
  "dist",
@@ -53,25 +53,25 @@
53
53
  "commander": "^14.0.2",
54
54
  "ejs": "^3.1.10",
55
55
  "tsx": "^4.21.0",
56
- "@rexeus/typeweaver-aws-cdk": "^0.5.0",
57
- "@rexeus/typeweaver-clients": "^0.5.0",
58
- "@rexeus/typeweaver-core": "^0.5.0",
59
- "@rexeus/typeweaver-hono": "^0.5.0",
60
- "@rexeus/typeweaver-gen": "^0.5.0",
61
- "@rexeus/typeweaver-types": "^0.5.0"
56
+ "@rexeus/typeweaver-aws-cdk": "^0.6.0",
57
+ "@rexeus/typeweaver-gen": "^0.6.0",
58
+ "@rexeus/typeweaver-clients": "^0.6.0",
59
+ "@rexeus/typeweaver-core": "^0.6.0",
60
+ "@rexeus/typeweaver-hono": "^0.6.0",
61
+ "@rexeus/typeweaver-server": "^0.6.0",
62
+ "@rexeus/typeweaver-types": "^0.6.0"
62
63
  },
63
64
  "peerDependencies": {
64
- "prettier": "^3.0.0"
65
+ "oxfmt": ">=0.30.0"
65
66
  },
66
67
  "peerDependenciesMeta": {
67
- "prettier": {
68
+ "oxfmt": {
68
69
  "optional": true
69
70
  }
70
71
  },
71
72
  "devDependencies": {
72
73
  "case": "^1.6.3",
73
74
  "hono": "^4.11.3",
74
- "prettier": "^3.6.2",
75
75
  "zod": "^4.3.6"
76
76
  },
77
77
  "scripts": {
@@ -79,12 +79,12 @@
79
79
  "cli:deno": "deno run -A src/entry.ts",
80
80
  "cli:bun": "bun run src/entry.ts",
81
81
  "typecheck": "tsc --noEmit",
82
- "format": "prettier --write .",
83
- "build": "tsup && mkdir -p ./dist/templates && cp -r ./src/generators/templates/* ./dist/templates/ && cp ../../LICENSE ../../NOTICE ./dist/",
82
+ "format": "oxfmt",
83
+ "build": "tsdown && mkdir -p ./dist/templates && cp -r ./src/generators/templates/* ./dist/templates/ && cp ../../LICENSE ../../NOTICE ./dist/",
84
84
  "preversion": "npm run build",
85
- "test:bundle": "pnpm run build && node dist/entry.js generate --output test/outputs/bundle --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared --plugins clients,aws-cdk,hono",
86
- "test:bundle:deno": "pnpm run build && deno run -A --sloppy-imports dist/entry.js generate --output test/outputs/bundle-deno --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared --plugins clients,aws-cdk,hono",
87
- "test:bundle:bun": "pnpm run build && bun run dist/entry.js generate --output test/outputs/bundle-bun --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared --plugins clients,aws-cdk,hono",
85
+ "test:bundle": "pnpm run build && node dist/entry.mjs generate --output test/outputs/bundle --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared --plugins clients,aws-cdk,hono",
86
+ "test:bundle:deno": "pnpm run build && deno run -A --sloppy-imports dist/entry.mjs generate --output test/outputs/bundle-deno --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared --plugins clients,aws-cdk,hono",
87
+ "test:bundle:bun": "pnpm run build && bun run dist/entry.mjs generate --output test/outputs/bundle-bun --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared --plugins clients,aws-cdk,hono",
88
88
  "test:bundle:all": "pnpm run test:bundle && pnpm run test:bundle:deno && pnpm run test:bundle:bun",
89
89
  "test:gen": "pnpm run test:gen:types && pnpm run test:gen:clients && pnpm run test:gen:aws-cdk && pnpm run test:gen:hono && pnpm run test:gen:all",
90
90
  "test:gen:types": "tsx src/cli.ts generate --output test/outputs/types --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared",