Skip to content

Commit

Permalink
Fix incorrectly configured exports
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Feb 8, 2024
1 parent f811b07 commit e1b2a69
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/early-otters-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@pothos/plugin-federation': patch
'@pothos-examples/prisma-federation': patch
---

Fix incorrectly configured exports in package.json
2 changes: 1 addition & 1 deletion examples/federation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"version": "2.8.53",
"name": "@pothos-examples/prisma-federation",
"name": "@pothos-examples/federation",
"main": "src/index.ts",
"types": "src/index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/federation/src/servers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { startStandaloneServer } from '@apollo/server/standalone';
import { server as reviewsServer } from './reviews';
import { server as productsServer } from './products';
import { server as reviewsServer } from './reviews';

export const servers = [
{ name: 'products', server: productsServer },
Expand Down
9 changes: 7 additions & 2 deletions packages/plugin-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
"types": "./dts/index.d.ts",
"module": "./esm/index.js",
"exports": {
"import": "./esm/index.js",
"require": "./lib/index.js"
"import": {
"default": "./esm/index.js"
},
"require": {
"types": "./dts/index.d.ts",
"default": "./lib/index.js"
}
},
"scripts": {
"type": "tsc --project tsconfig.type.json",
Expand Down

0 comments on commit e1b2a69

Please sign in to comment.