build(swagger-editor): lint published package (#1062)

pull/1073/head
Jonathan Haines 2025-03-27 15:05:11 +11:00 committed by GitHub
parent 5234436db8
commit ee540d95fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 9 deletions

View File

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

View File

@ -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",
"prerelease": "yarn build && yarn test", "publint": "attw --pack && publint",
"release": "yarn publish" "test": "vitest"
}, },
"license": "MIT", "license": "MIT",
"publishConfig": { "publishConfig": {
@ -34,15 +34,18 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/honojs/middleware.git" "url": "git+https://github.com/honojs/middleware.git",
"directory": "packages/swagger-editor"
}, },
"homepage": "https://github.com/honojs/middleware", "homepage": "https://github.com/honojs/middleware",
"peerDependencies": { "peerDependencies": {
"hono": "*" "hono": "*"
}, },
"devDependencies": { "devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"hono": "^3.11.7", "hono": "^3.11.7",
"tsup": "^7.2.0", "publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8" "vitest": "^3.0.8"
} }
} }

View File

@ -2,6 +2,5 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"types": ["vitest/globals"] "types": ["vitest/globals"]
}, }
"include": ["src/**/*.ts", "src/**/*.tsx"]
} }

View File

@ -2870,8 +2870,10 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@hono/swagger-editor@workspace:packages/swagger-editor" resolution: "@hono/swagger-editor@workspace:packages/swagger-editor"
dependencies: dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
hono: "npm:^3.11.7" hono: "npm:^3.11.7"
tsup: "npm:^7.2.0" publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
vitest: "npm:^3.0.8" vitest: "npm:^3.0.8"
peerDependencies: peerDependencies:
hono: "*" hono: "*"