build(casbin): lint published package (#1036)
parent
6e268318bf
commit
2a6c7f0202
|
@ -19,6 +19,7 @@ jobs:
|
|||
node-version: 20.x
|
||||
- run: yarn workspaces focus hono-middleware @hono/casbin
|
||||
- run: yarn workspace @hono/casbin build
|
||||
- run: yarn workspace @hono/casbin publint
|
||||
- run: yarn test --coverage --project @hono/casbin
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -32,10 +32,10 @@
|
|||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "vitest --run",
|
||||
"build": "tsup ./src/index.ts ./src/helper/index.ts --format esm,cjs --dts",
|
||||
"publint": "publint",
|
||||
"release": "yarn build && yarn test && yarn publint && yarn publish"
|
||||
"build": "tsup ./src/index.ts ./src/helper/index.ts",
|
||||
"prepack": "yarn build",
|
||||
"publint": "attw --pack --profile node16 && publint",
|
||||
"test": "vitest"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
@ -44,7 +44,8 @@
|
|||
},
|
||||
"repository": {
|
||||
"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",
|
||||
"peerDependencies": {
|
||||
|
@ -52,10 +53,11 @@
|
|||
"hono": ">=4.5.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.4",
|
||||
"casbin": "^5.30.0",
|
||||
"hono": "^4.5.11",
|
||||
"tsup": "^8.1.0",
|
||||
"typescript": "^5.5.3",
|
||||
"publint": "^0.3.9",
|
||||
"tsup": "^8.4.0",
|
||||
"vitest": "^3.0.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"exactOptionalPropertyTypes": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2630,10 +2630,11 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@hono/casbin@workspace:packages/casbin"
|
||||
dependencies:
|
||||
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||
casbin: "npm:^5.30.0"
|
||||
hono: "npm:^4.5.11"
|
||||
tsup: "npm:^8.1.0"
|
||||
typescript: "npm:^5.5.3"
|
||||
publint: "npm:^0.3.9"
|
||||
tsup: "npm:^8.4.0"
|
||||
vitest: "npm:^3.0.8"
|
||||
peerDependencies:
|
||||
casbin: ">=5.30.0"
|
||||
|
|
Loading…
Reference in New Issue