build(casbin): lint published package (#1036)

pull/1010/head^2
Jonathan Haines 2025-03-24 21:48:37 +11:00 committed by GitHub
parent 6e268318bf
commit 2a6c7f0202
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 14 deletions

View File

@ -19,6 +19,7 @@ jobs:
node-version: 20.x node-version: 20.x
- run: yarn workspaces focus hono-middleware @hono/casbin - run: yarn workspaces focus hono-middleware @hono/casbin
- run: yarn workspace @hono/casbin build - run: yarn workspace @hono/casbin build
- run: yarn workspace @hono/casbin publint
- run: yarn test --coverage --project @hono/casbin - run: yarn test --coverage --project @hono/casbin
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:

View File

@ -32,10 +32,10 @@
"dist" "dist"
], ],
"scripts": { "scripts": {
"test": "vitest --run", "build": "tsup ./src/index.ts ./src/helper/index.ts",
"build": "tsup ./src/index.ts ./src/helper/index.ts --format esm,cjs --dts", "prepack": "yarn build",
"publint": "publint", "publint": "attw --pack --profile node16 && publint",
"release": "yarn build && yarn test && yarn publint && yarn publish" "test": "vitest"
}, },
"license": "MIT", "license": "MIT",
"publishConfig": { "publishConfig": {
@ -44,7 +44,8 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/honojs/middleware.git" "url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/casbin"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
@ -52,10 +53,11 @@
"hono": ">=4.5.11" "hono": ">=4.5.11"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"casbin": "^5.30.0", "casbin": "^5.30.0",
"hono": "^4.5.11", "hono": "^4.5.11",
"tsup": "^8.1.0", "publint": "^0.3.9",
"typescript": "^5.5.3", "tsup": "^8.4.0",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -1,10 +1,6 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"rootDir": "./src",
"exactOptionalPropertyTypes": true "exactOptionalPropertyTypes": true
}, }
"include": [
"src/**/*.ts"
],
} }

View File

@ -2630,10 +2630,11 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/casbin@workspace:packages/casbin" resolution: "@hono/casbin@workspace:packages/casbin"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
casbin: "npm:^5.30.0" casbin: "npm:^5.30.0"
hono: "npm:^4.5.11" hono: "npm:^4.5.11"
tsup: "npm:^8.1.0" publint: "npm:^0.3.9"
typescript: "npm:^5.5.3" tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8" vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
casbin: ">=5.30.0" casbin: ">=5.30.0"