diff --git a/.gitignore b/.gitignore index 70f71a941..915f1ac7b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ node_modules /browser *.tgz .turbo +cjs +esm diff --git a/packages/multi-parser/src/convert.ts b/packages/multi-parser/src/convert.ts index a41fa238b..5ca12044c 100644 --- a/packages/multi-parser/src/convert.ts +++ b/packages/multi-parser/src/convert.ts @@ -1,10 +1,10 @@ import { createAsyncAPIDocument as createAsyncAPIDocumentParserV1 } from 'parserapiv1'; import { createAsyncAPIDocument as createAsyncAPIDocumentParserV2 } from 'parserapiv2'; -import { createAsyncAPIDocument as createAsyncAPIDocumentParserV3 } from '@asyncapi/parser'; +import { createAsyncAPIDocument as createAsyncAPIDocumentParserV3 } from '@asyncapi/parser/esm/index'; import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV1 } from 'parserapiv1'; import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV2 } from 'parserapiv2'; -import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV3 } from '@asyncapi/parser'; +import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV3 } from '@asyncapi/parser/esm/index'; import type { DetailedAsyncAPI as DetailedAsyncAPIParserV1 } from 'parserapiv1/esm/types'; import type { DetailedAsyncAPI as DetailedAsyncAPIParserV2 } from 'parserapiv2/esm/types'; diff --git a/packages/multi-parser/src/parse.ts b/packages/multi-parser/src/parse.ts index a23a87316..73df755ec 100644 --- a/packages/multi-parser/src/parse.ts +++ b/packages/multi-parser/src/parse.ts @@ -1,6 +1,6 @@ import { Parser as ParserV1 } from 'parserapiv1'; import { Parser as ParserV2 } from 'parserapiv2'; -import { Parser as ParserV3 } from '@asyncapi/parser'; +import { Parser as ParserV3 } from '@asyncapi/parser/esm/index'; import { AvroSchemaParser } from '@asyncapi/avro-schema-parser'; import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser';