diff --git a/packages/casbin/package.json b/packages/casbin/package.json index 6d0be5f2..c1267b38 100644 --- a/packages/casbin/package.json +++ b/packages/casbin/package.json @@ -3,9 +3,9 @@ "version": "1.0.1", "description": "Casbin middleware for Hono", "type": "module", - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", "exports": { ".": { "import": { @@ -16,6 +16,16 @@ "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } + }, + "./helper": { + "import": { + "types": "./dist/helper/index.d.ts", + "default": "./dist/helper/index.js" + }, + "require": { + "types": "./dist/helper/index.d.cts", + "default": "./dist/helper/index.cjs" + } } }, "files": [ @@ -23,7 +33,7 @@ ], "scripts": { "test": "vitest --run", - "build": "tsup ./src/index.ts --format esm,cjs --dts", + "build": "tsup ./src/index.ts ./src/helper/index.ts --format esm,cjs --dts", "publint": "publint", "release": "yarn build && yarn test && yarn publint && yarn publish" },