From 41952f52dcb0094c7bc301309961af0f9b4b80b4 Mon Sep 17 00:00:00 2001 From: AyushNautiyalDeveloper Date: Thu, 4 Jul 2024 22:35:09 +0530 Subject: [PATCH] Added the new esm/index directory updated the gitignore. --- .gitignore | 2 ++ packages/multi-parser/src/convert.ts | 4 ++-- packages/multi-parser/src/parse.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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';