Skip to content

Commit

Permalink
fix(132): exports are broken with ts-node and jest
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy committed Feb 20, 2024
1 parent a16b819 commit f22b997
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 31 deletions.
5 changes: 3 additions & 2 deletions apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:e2e:production": "NEXT_PUBLIC_ANALYTICS_MODE=production pnpm --filter nextjs... build && playwright test production"
},
"dependencies": {
"@vercel/analytics": "1.2.1",
"@vercel/analytics": "workspace:*",
"next": "14.1.0",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand All @@ -22,6 +22,7 @@
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0"
"jest-environment-jsdom": "^29.7.0",
"ts-node": "^10.9.2"
}
}
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"require": "./dist/next/index.js"
},
"./server": {
"node": "./dist/server/index.mjs",
"node": "./dist/server/index.js",
"edge-light": "./dist/server/index.mjs",
"import": "./dist/server/index.mjs",
"require": "./dist/server/index.js",
Expand Down
86 changes: 58 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f22b997

Please sign in to comment.