From a724b2231aa2921564f53e0eca7cae3cb92eb75d Mon Sep 17 00:00:00 2001 From: Andrei Alecu Date: Sun, 4 Feb 2024 13:50:26 +0200 Subject: [PATCH] fix tests --- config/prepareDist.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/prepareDist.js b/config/prepareDist.js index 747ef55f337..2f90faab8f9 100644 --- a/config/prepareDist.js +++ b/config/prepareDist.js @@ -44,9 +44,18 @@ packageJson.exports = { import: packageJson.module, require: packageJson.main, }, + "./index.js": { + types: packageJson.types, + import: packageJson.module, + require: packageJson.main, + }, "./package.json": { default: "./package.json", }, + // related to issue #8605 + "./apollo-client.cjs": { + require: "./apollo-client.cjs", + }, ...entryPoints.reduce((acc, { dirs, bundleName = dirs[dirs.length - 1] }) => { if (!dirs.length) return acc; const path = `./${dirs.join("/")}`;