@trpc/openapi 11.16.1-canary.17 → 11.16.1-canary.20
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/dist/index.mjs +1 -1
- package/package.json +2 -2
- 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/dist/index.mjs
CHANGED
|
@@ -275,7 +275,7 @@ function setNestedDescription({ schema, pathParts, description, schemas }) {
|
|
|
275
275
|
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/generate.ts
|
|
278
|
-
var import_objectSpread2 = __toESM(require_objectSpread2()
|
|
278
|
+
var import_objectSpread2 = __toESM(require_objectSpread2());
|
|
279
279
|
const PRIMITIVE_FLAGS = ts.TypeFlags.String | ts.TypeFlags.Number | ts.TypeFlags.Boolean | ts.TypeFlags.StringLiteral | ts.TypeFlags.NumberLiteral | ts.TypeFlags.BooleanLiteral;
|
|
280
280
|
function hasFlag(type, flag) {
|
|
281
281
|
return (type.getFlags() & flag) !== 0;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@trpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "11.16.1-canary.
|
|
5
|
+
"version": "11.16.1-canary.20+60c89fc31",
|
|
6
6
|
"description": "OpenAPI document generator for tRPC routers",
|
|
7
7
|
"author": "KATT",
|
|
8
8
|
"license": "MIT",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"keywords": [
|
|
113
113
|
"tanstack-intent"
|
|
114
114
|
],
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "60c89fc316524904e03394b606c184b8e3abed03"
|
|
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
|
}
|