diff --git a/package.json b/package.json index f475290..11197cc 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": [ diff --git a/tsup.config.ts b/tsup.config.ts index cd0569e..f101cfa 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -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,