mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
feat: add openapi gen to core
This commit is contained in:
@@ -86,7 +86,7 @@ class LightweightDefinitionBuilder {
|
||||
esModuleInterop: true,
|
||||
experimentalDecorators: true,
|
||||
inlineSourceMap: true,
|
||||
module: ts.ModuleKind.CommonJS,
|
||||
module: ts.ModuleKind.NodeNext,
|
||||
strict: true,
|
||||
target: ts.ScriptTarget.ES2015,
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@ import {LightweightDefinition} from './lightweight-definition.js';
|
||||
*/
|
||||
function buildIndex(project: LightweightProject): Record<string, string> {
|
||||
return Object.fromEntries(
|
||||
Object.values(project).flatMap((definitions, file) =>
|
||||
Object.entries(project).flatMap(([file, definitions]) =>
|
||||
Object.keys(definitions).map(definition => [definition, file.toString()]),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user