Skip to content

Commit

Permalink
fix: Jest unable to find /app & /pages modules (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorWo authored Nov 8, 2024
1 parent e408c8e commit 7ba98ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-cas-client",
"version": "1.2.1",
"version": "1.2.2",
"description": "A CAS client built for Next.js to authenticate, validate tickets, and provide session management to a CAS server",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -16,19 +16,19 @@
},
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts"
"require": "./dist/index.js"
},
"./app": {
"types": "./dist/app.d.mts",
"import": "./dist/app.mjs",
"module": "./dist/app.mjs",
"types": "./dist/app.d.mts"
"require": "./dist/app.js"
},
"./pages": {
"types": "./dist/pages.d.mts",
"import": "./dist/pages.mjs",
"module": "./dist/pages.mjs",
"types": "./dist/pages.d.mts"
"require": "./dist/pages.js"
}
},
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { defineConfig } from 'tsup';
export default defineConfig({
format: ['cjs', 'esm'],
entry: ['./src/index.ts', './src/app.ts', './src/pages.ts'],
target: 'node18',
dts: true,
shims: true,
skipNodeModulesBundle: true,
Expand Down

0 comments on commit 7ba98ec

Please sign in to comment.