build(react-compat): lint published package (#1060)
parent
d911e624a8
commit
cee0c83bc8
|
@ -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 }}
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,6 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
}
|
||||
"outDir": "./dist"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue