build(swagger-ui): lint published package (#1063)
parent
6a69f92bc1
commit
93b544fba0
|
@ -19,6 +19,7 @@ jobs:
|
|||
node-version: 20.x
|
||||
- run: yarn workspaces focus hono-middleware @hono/swagger-ui
|
||||
- run: yarn workspace @hono/swagger-ui build
|
||||
- run: yarn workspace @hono/swagger-ui publint
|
||||
- run: yarn test --coverage --project @hono/swagger-ui
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "vitest run",
|
||||
"build": "tsup ./src/index.ts --format esm,cjs --dts",
|
||||
"publint": "publint",
|
||||
"release": "yarn build && yarn test && yarn publint && yarn publish"
|
||||
"build": "tsup ./src/index.ts",
|
||||
"prepack": "yarn build",
|
||||
"publint": "attw --pack && publint",
|
||||
"test": "vitest"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
@ -34,17 +34,19 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/honojs/middleware.git"
|
||||
"url": "git+https://github.com/honojs/middleware.git",
|
||||
"directory": "packages/swagger-ui"
|
||||
},
|
||||
"homepage": "https://github.com/honojs/middleware",
|
||||
"peerDependencies": {
|
||||
"hono": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.4",
|
||||
"@types/swagger-ui-dist": "^3.30.5",
|
||||
"hono": "^3.11.7",
|
||||
"publint": "^0.2.2",
|
||||
"tsup": "^7.2.0",
|
||||
"publint": "^0.3.9",
|
||||
"tsup": "^8.4.0",
|
||||
"vitest": "^3.0.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,5 @@
|
|||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["vitest/globals"]
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx"]
|
||||
}
|
||||
}
|
||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -2709,10 +2709,11 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@hono/swagger-ui@workspace:packages/swagger-ui"
|
||||
dependencies:
|
||||
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||
"@types/swagger-ui-dist": "npm:^3.30.5"
|
||||
hono: "npm:^3.11.7"
|
||||
publint: "npm:^0.2.2"
|
||||
tsup: "npm:^7.2.0"
|
||||
publint: "npm:^0.3.9"
|
||||
tsup: "npm:^8.4.0"
|
||||
vitest: "npm:^3.0.8"
|
||||
peerDependencies:
|
||||
hono: "*"
|
||||
|
@ -13783,19 +13784,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"publint@npm:^0.2.2":
|
||||
version: 0.2.6
|
||||
resolution: "publint@npm:0.2.6"
|
||||
dependencies:
|
||||
npm-packlist: "npm:^5.1.3"
|
||||
picocolors: "npm:^1.0.0"
|
||||
sade: "npm:^1.8.1"
|
||||
bin:
|
||||
publint: lib/cli.js
|
||||
checksum: 105c2bea40adc9c0cbf4cf8433528cb786cf8d0389e8c7d469ccacd8caec2b2bf5341e74de19bc42aa6b036906b3ed6f474259bf4e36b7f68adfbc38de4a9563
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"publint@npm:^0.2.7":
|
||||
version: 0.2.7
|
||||
resolution: "publint@npm:0.2.7"
|
||||
|
|
Loading…
Reference in New Issue