build(react-compat): lint published package (#1060)

pull/1058/head^2
Jonathan Haines 2025-03-27 17:33:45 +11:00 committed by GitHub
parent d911e624a8
commit cee0c83bc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 46 additions and 15 deletions

View File

@ -0,0 +1,30 @@
name: ci-react-compat
on:
push:
branches: [main]
paths:
- 'packages/react-compat/**'
pull_request:
branches: ['*']
paths:
- 'packages/react-compat/**'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- run: yarn workspaces focus hono-middleware @hono/react-compat
- run: yarn workspace @hono/react-compat build
- run: yarn workspace @hono/react-compat publint
# - run: yarn test --coverage --project @hono/react-compat
# - uses: codecov/codecov-action@v5
# with:
# fail_ci_if_error: true
# directory: ./coverage
# flags: react-compat
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@ -6,19 +6,20 @@
"license": "MIT",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup ./src --format esm,cjs --dts",
"publint": "publint",
"release": "yarn build && yarn test && yarn publint && yarn publish"
"build": "tsup ./src",
"prepack": "yarn build",
"publint": "attw --pack && publint"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./*": {
"types": "./dist/*.d.ts",
"import": "./dist/*.js",
"require": "./dist/*.cjs"
}
@ -27,7 +28,9 @@
"hono": ">=4.5.*"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"hono": "^4.5.0",
"tsup": "^8.0.1"
"publint": "^0.3.9",
"tsup": "^8.4.0"
}
}

View File

@ -1,10 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
},
"include": [
"src/**/*.ts"
],
"outDir": "./dist"
}
}

View File

@ -2305,8 +2305,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hono/react-compat@workspace:packages/react-compat"
dependencies:
"@arethetypeswrong/cli": "npm:^0.17.4"
hono: "npm:^4.5.0"
tsup: "npm:^8.0.1"
publint: "npm:^0.3.9"
tsup: "npm:^8.4.0"
peerDependencies:
hono: ">=4.5.*"
languageName: unknown