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
- run: yarn workspaces focus hono-middleware @hono/swagger-editor
- run: yarn workspace @hono/swagger-editor build
- run: yarn workspace @hono/swagger-editor publint
- run: yarn test --coverage --project @hono/swagger-editor
- uses: codecov/codecov-action@v5
with:

View File

@ -22,10 +22,10 @@
"dist"
],
"scripts": {
"test": "vitest run",
"build": "tsup ./src/index.ts --format esm,cjs --dts",
"prerelease": "yarn build && yarn test",
"release": "yarn publish"
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"license": "MIT",
"publishConfig": {
@ -34,15 +34,18 @@
},
"repository": {
"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",
"peerDependencies": {
"hono": "*"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"hono": "^3.11.7",
"tsup": "^7.2.0",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
}
}

View File

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

View File

@ -2870,8 +2870,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/swagger-editor@workspace:packages/swagger-editor"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
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"
peerDependencies:
hono: "*"