65 lines
1.5 KiB
JSON
65 lines
1.5 KiB
JSON
{
|
|
"name": "@hono/casbin",
|
|
"version": "1.0.0",
|
|
"description": "Casbin middleware for Hono",
|
|
"type": "module",
|
|
"main": "dist/index.cjs",
|
|
"module": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"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": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup ./src/index.ts ./src/helper/index.ts",
|
|
"prepack": "yarn build",
|
|
"publint": "attw --pack --profile node16 && publint",
|
|
"typecheck": "tsc -b tsconfig.json",
|
|
"test": "vitest"
|
|
},
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org",
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/honojs/middleware.git",
|
|
"directory": "packages/casbin"
|
|
},
|
|
"homepage": "https://github.com/honojs/middleware",
|
|
"peerDependencies": {
|
|
"casbin": ">=5.30.0",
|
|
"hono": ">=4.5.11"
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "^0.17.4",
|
|
"casbin": "^5.30.0",
|
|
"publint": "^0.3.9",
|
|
"tsup": "^8.4.0",
|
|
"typescript": "^5.8.2",
|
|
"vitest": "^3.0.8"
|
|
}
|
|
}
|