Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu committed Feb 4, 2024
1 parent d933b56 commit dfe6e67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/prepareDist.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,15 @@ packageJson.exports = {
import: `${path}/index.js`,
require: `${path}/${bundleName}.cjs`,
};

// allows imports like `import { ApolloClient } from "@apollo/client/index.js";`
acc[`${path}/index.js`] = {
types: `${path}/index.d.ts`,
default: `${path}/index.js`,
};
return acc;
}, {}),
}
};

// The root package.json points to the CJS/ESM source in "dist", to support
// on-going package development (e.g. running tests, supporting npm link, etc.).
Expand Down

0 comments on commit dfe6e67

Please sign in to comment.