@trpc/openapi 11.16.1-canary.6 → 11.17.0-alpha
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/cli.js +1 -0
- package/package.json +5 -5
- package/src/cli.ts +1 -0
package/dist/cli.js
CHANGED
|
@@ -1105,6 +1105,7 @@ async function main() {
|
|
|
1105
1105
|
process.exit(1);
|
|
1106
1106
|
}
|
|
1107
1107
|
const outputPath = path.resolve(args.output);
|
|
1108
|
+
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
|
|
1108
1109
|
fs.writeFileSync(outputPath, JSON.stringify(doc, null, 2) + "\n", "utf8");
|
|
1109
1110
|
console.log(`OpenAPI document written to: ${outputPath}`);
|
|
1110
1111
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@trpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "11.
|
|
5
|
+
"version": "11.17.0-alpha",
|
|
6
6
|
"description": "OpenAPI document generator for tRPC routers",
|
|
7
7
|
"author": "KATT",
|
|
8
8
|
"license": "MIT",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@hey-api/openapi-ts": "^0.94.5",
|
|
81
81
|
"@swagger-api/apidom-ls": "^1.6.0",
|
|
82
|
-
"@tanstack/intent": "^0.0.
|
|
83
|
-
"@trpc/server": "11.
|
|
82
|
+
"@tanstack/intent": "^0.0.27",
|
|
83
|
+
"@trpc/server": "11.17.0",
|
|
84
84
|
"@types/node": "^22.13.5",
|
|
85
85
|
"bson": "^7.2.0",
|
|
86
86
|
"eslint": "^9.26.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@hey-api/openapi-ts": ">=0.94.5",
|
|
97
|
-
"@trpc/server": "11.
|
|
97
|
+
"@trpc/server": "11.17.0",
|
|
98
98
|
"typescript": ">=5.7.2",
|
|
99
99
|
"zod": ">=4.0.0"
|
|
100
100
|
},
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"keywords": [
|
|
113
113
|
"tanstack-intent"
|
|
114
114
|
],
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "23c723cfeaf07da28a52a5c35c3dcccf96a47578"
|
|
116
116
|
}
|
package/src/cli.ts
CHANGED
|
@@ -126,6 +126,7 @@ async function main(): Promise<void> {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
const outputPath = path.resolve(args.output);
|
|
129
|
+
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
|
|
129
130
|
fs.writeFileSync(outputPath, JSON.stringify(doc, null, 2) + '\n', 'utf8');
|
|
130
131
|
console.log(`OpenAPI document written to: ${outputPath}`);
|
|
131
132
|
}
|