Description
`/bin/zsh /hack/shell/gen_swagger_api.sh
npx tsc ./gen_swagger_api.ts
gen_swagger_api.ts:40:5 - error TS2353: Object literal may only specify known properties, and 'templates' does not exist in type 'Partial<{ input: string; output: string | false; url: string; spec: unknown; fileName: string; templatePaths: { base: string; default: string; modular: string; original: string; custom: string; }; authorizationToken?: string; ... 53 more ...; extractingOptions: ExtractingOptions; }>'.
40 templates: resolve(process.cwd(), "./gen_swagger_templates"),
~~~~~~~~~
../node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/index.d.ts:1:46 - error TS2307: Cannot find module 'components/HTMLElement' or its corresponding type declarations.
1 import { HTMLElement as _HTMLElement1 } from "components/HTMLElement";
~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/index.d.ts:176:41 - error TS2307: Cannot find module 'bundle-text:./PickerStyles.scss' or its corresponding type declarations.
176 export { default as PickerStyles } from 'bundle-text:./PickerStyles.scss';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:1:50 - error TS2307: Cannot find module './configuration.js' or its corresponding type declarations.
1 import { CodeGenConfig as CodeGenConfig_2 } from './configuration.js';
~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:2:52 - error TS2307: Cannot find module '../src/code-gen-process.js' or its corresponding type declarations.
2 import { CodeGenProcess as CodeGenProcess_2 } from '../src/code-gen-process.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:4:70 - error TS2307: Cannot find module '../../../types/index.js' or its corresponding type declarations.
4 import { GenerateTemplatesOutput as GenerateTemplatesOutput_2 } from '../../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:5:48 - error TS2307: Cannot find module './util/internal-case.js' or its corresponding type declarations.
5 import { internalCase as internalCase_2 } from './util/internal-case.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:6:8 - error TS1259: Module '"/node_modules/.pnpm/@types+lodash@4.17.16/node_modules/@types/lodash/index"' can only be default-imported using the 'esModuleInterop' flag
6 import lodash from 'lodash';
~~~~~~
../node_modules/.pnpm/@types+lodash@4.17.16/node_modules/@types/lodash/index.d.ts:14:1
14 export = _;
~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:8:48 - error TS2307: Cannot find module './util/name-resolver.js' or its corresponding type declarations.
8 import { NameResolver as NameResolver_2 } from './util/name-resolver.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:9:30 - error TS2307: Cannot find module 'openapi-types' or its corresponding type declarations.
9 import type { OpenAPI } from 'openapi-types';
~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:10:25 - error TS2307: Cannot find module 'tsup' or its corresponding type declarations.
10 import { Options } from 'tsup';
~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:11:46 - error TS2307: Cannot find module '../types/index.js' or its corresponding type declarations.
11 import { ParsedRoute as ParsedRoute_2 } from '../types/index.js';
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:12:48 - error TS2307: Cannot find module '../types/index.js' or its corresponding type declarations.
12 import { ParsedSchema as ParsedSchema_2 } from '../types/index.js';
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:13:48 - error TS2307: Cannot find module '../../../types/index.js' or its corresponding type declarations.
13 import { ParsedSchema as ParsedSchema_3 } from '../../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:14:44 - error TS2307: Cannot find module './util/pascal-case.js' or its corresponding type declarations.
14 import { pascalCase as pascalCase_2 } from './util/pascal-case.js';
~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:15:50 - error TS2307: Cannot find module '../../types/index.js' or its corresponding type declarations.
15 import { RouteNameInfo as RouteNameInfo_2 } from '../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:16:54 - error TS2307: Cannot find module '../../types/index.js' or its corresponding type declarations.
16 import { SchemaComponent as SchemaComponent_2 } from '../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:17:54 - error TS2307: Cannot find module '../types/index.js' or its corresponding type declarations.
17 import { SchemaComponent as SchemaComponent_3 } from '../types/index.js';
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:18:54 - error TS2307: Cannot find module '../../../types/index.js' or its corresponding type declarations.
18 import { SchemaComponent as SchemaComponent_4 } from '../../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:19:48 - error TS2307: Cannot find module '../src/schema-parser/schema-parser.js' or its corresponding type declarations.
19 import { SchemaParser as SchemaParser_2 } from '../src/schema-parser/schema-parser.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:20:66 - error TS2307: Cannot find module '../types/index.js' or its corresponding type declarations.
20 import { SchemaTypeEnumContent as SchemaTypeEnumContent_2 } from '../types/index.js';
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:21:66 - error TS2307: Cannot find module '../../../types/index.js' or its corresponding type declarations.
21 import { SchemaTypeEnumContent as SchemaTypeEnumContent_3 } from '../../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:22:70 - error TS2307: Cannot find module '../types/index.js' or its corresponding type declarations.
22 import { SchemaTypeObjectContent as SchemaTypeObjectContent_2 } from '../types/index.js';
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:23:70 - error TS2307: Cannot find module '../../../types/index.js' or its corresponding type declarations.
23 import { SchemaTypeObjectContent as SchemaTypeObjectContent_3 } from '../../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:24:76 - error TS2307: Cannot find module '../types/index.js' or its corresponding type declarations.
24 import { SchemaTypePrimitiveContent as SchemaTypePrimitiveContent_2 } from '../types/index.js';
~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:25:76 - error TS2307: Cannot find module '../../../types/index.js' or its corresponding type declarations.
25 import { SchemaTypePrimitiveContent as SchemaTypePrimitiveContent_3 } from '../../../types/index.js';
~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:27:44 - error TS2307: Cannot find module './translators/translator.js' or its corresponding type declarations.
27 import { Translator as Translator_2 } from './translators/translator.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:28:48 - error TS2307: Cannot find module './translators/translator.js' or its corresponding type declarations.
28 import { TranslatorIO as TranslatorIO_2 } from './translators/translator.js';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:314:19 - error TS2339: Property 'codeGenConstructs' does not exist on type 'Partial<{ input: string; output: string | false; url: string; spec: unknown; fileName: string; templatePaths: { base: string; default: string; modular: string; original: string; custom: string; }; authorizationToken?: string; ... 53 more ...; extractingOptions: ExtractingOptions; }>'.
314 constructor({ codeGenConstructs, primitiveTypeConstructs, constants, templateInfos, hooks, ...otherConfig }: Partial<GenerateApiConfiguration["config"]>);
~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:314:38 - error TS2339: Property 'primitiveTypeConstructs' does not exist on type 'Partial<{ input: string; output: string | false; url: string; spec: unknown; fileName: string; templatePaths: { base: string; default: string; modular: string; original: string; custom: string; }; authorizationToken?: string; ... 53 more ...; extractingOptions: ExtractingOptions; }>'.
314 constructor({ codeGenConstructs, primitiveTypeConstructs, constants, templateInfos, hooks, ...otherConfig }: Partial<GenerateApiConfiguration["config"]>);
~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:314:63 - error TS2339: Property 'constants' does not exist on type 'Partial<{ input: string; output: string | false; url: string; spec: unknown; fileName: string; templatePaths: { base: string; default: string; modular: string; original: string; custom: string; }; authorizationToken?: string; ... 53 more ...; extractingOptions: ExtractingOptions; }>'.
314 constructor({ codeGenConstructs, primitiveTypeConstructs, constants, templateInfos, hooks, ...otherConfig }: Partial<GenerateApiConfiguration["config"]>);
~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:314:74 - error TS2339: Property 'templateInfos' does not exist on type 'Partial<{ input: string; output: string | false; url: string; spec: unknown; fileName: string; templatePaths: { base: string; default: string; modular: string; original: string; custom: string; }; authorizationToken?: string; ... 53 more ...; extractingOptions: ExtractingOptions; }>'.
314 constructor({ codeGenConstructs, primitiveTypeConstructs, constants, templateInfos, hooks, ...otherConfig }: Partial<GenerateApiConfiguration["config"]>);
~~~~~~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:1599:44 - error TS2339: Property 'typeName' does not exist on type '{}'.
1599 constructor(schemaParserFabric: any, { typeName, schema, schemaPath }?: {});
~~~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:1599:54 - error TS2339: Property 'schema' does not exist on type '{}'.
1599 constructor(schemaParserFabric: any, { typeName, schema, schemaPath }?: {});
~~~~~~
../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/_tsup-dts-rollup.d.cts:1599:62 - error TS2339: Property 'schemaPath' does not exist on type '{}'.
1599 constructor(schemaParserFabric: any, { typeName, schema, schemaPath }?: {});
~~~~~~~~~~
../node_modules/.pnpm/vite@6.2.6_@types+node@22.14.1_jiti@2.4.2_less@4.3.0_lightningcss@1.29.3_sass@1.86.3_st_b6c6547520e318ba476b43dc97452626/node_modules/vite/dist/node/index.d.ts:5:41 - error TS2307: Cannot find module 'rollup/parseAst' or its corresponding type declarations.
There are types at '/node_modules/.pnpm/vite@6.2.6_@types+node@22.14.1_jiti@2.4.2_less@4.3.0_lightningcss@1.29.3_sass@1.86.3_st_b6c6547520e318ba476b43dc97452626/node_modules/rollup/dist/parseAst.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
5 export { parseAst, parseAstAsync } from 'rollup/parseAst';
~~~~~~~~~~~~~~~~~
Found 36 errors in 4 files.
Errors Files
1 gen_swagger_api.ts:40
2 ../node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/index.d.ts:1
32 ../node_modules/.pnpm/swagger-typescript-api@13.1.1_magicast@0.3.5/node_modules/swagger-typescript-api/dist/tsup-dts-rollup.d.cts:1
1 ../node_modules/.pnpm/vite@6.2.6@types+node@22.14.1_jiti@2.4.2_less@4.3.0_lightningcss@1.29.3_sass@1.86.3_st_b6c6547520e318ba476b43dc97452626/node_modules/vite/dist/node/index.d.ts:5
`