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