@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/README.md +45 -17
- package/dist/LICENSE +1 -1
- package/dist/NOTICE +1 -1
- package/dist/cli-Cs-6XYwL.mjs +4250 -0
- package/dist/cli.cjs +4021 -14709
- package/dist/cli.d.cts +1 -2
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +4250 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/entry.mjs +30 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +3 -0
- package/dist/tsx-loader-DUG5if6z.mjs +4 -0
- package/package.json +20 -20
- package/dist/chunk-AYKTAXMI.js +0 -14954
- package/dist/chunk-K3NQKI34.js +0 -8
- package/dist/cli-Q5T6SL57.js +0 -14951
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -1
- package/dist/entry.js +0 -31
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/dist/metafile-cjs.json +0 -1
- package/dist/metafile-esm.json +0 -1
- package/dist/tsx-loader-3QUDYASH.js +0 -2
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
|
-
'
|
|
2
|
-
|
|
1
|
+
require('./cli.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { }
|
|
1
|
+
export { };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexeus/typeweaver",
|
|
3
|
-
"version": "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.
|
|
9
|
-
"types": "dist/index.d.
|
|
8
|
+
"module": "dist/index.mjs",
|
|
9
|
+
"types": "dist/index.d.mts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"import": {
|
|
13
|
-
"types": "./dist/index.d.
|
|
14
|
-
"default": "./dist/index.
|
|
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.
|
|
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.
|
|
57
|
-
"@rexeus/typeweaver-
|
|
58
|
-
"@rexeus/typeweaver-
|
|
59
|
-
"@rexeus/typeweaver-
|
|
60
|
-
"@rexeus/typeweaver-
|
|
61
|
-
"@rexeus/typeweaver-
|
|
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
|
-
"
|
|
65
|
+
"oxfmt": ">=0.30.0"
|
|
65
66
|
},
|
|
66
67
|
"peerDependenciesMeta": {
|
|
67
|
-
"
|
|
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": "
|
|
83
|
-
"build": "
|
|
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.
|
|
86
|
-
"test:bundle:deno": "pnpm run build && deno run -A --sloppy-imports dist/entry.
|
|
87
|
-
"test:bundle:bun": "pnpm run build && bun run dist/entry.
|
|
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",
|