From 42b87892e4e379b8cd7eba189981e10de60b9014 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Mon, 4 Dec 2023 20:40:25 +0100 Subject: [PATCH] Fix non bundler module resolution in ts for third-parties pkg (#59244) --- packages/third-parties/google.d.ts | 1 + packages/third-parties/package.json | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 packages/third-parties/google.d.ts diff --git a/packages/third-parties/google.d.ts b/packages/third-parties/google.d.ts new file mode 100644 index 0000000000000..f2380e47da7ed --- /dev/null +++ b/packages/third-parties/google.d.ts @@ -0,0 +1 @@ +export * from './dist/types/index' diff --git a/packages/third-parties/package.json b/packages/third-parties/package.json index e274c624b9a08..8e838c5d80706 100644 --- a/packages/third-parties/package.json +++ b/packages/third-parties/package.json @@ -6,9 +6,11 @@ "directory": "packages/third-parties" }, "exports": { - "./google": "./dist/google/index.js" + "./google": { + "types": "./dist/google/index.d.ts", + "default": "./dist/google/index.js" + } }, - "types": "dist/types/google.d.ts", "files": [ "dist" ],