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",
|
"license": "MIT",
|
||||||
"module": "dist/index.js",
|
"module": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup ./src --format esm,cjs --dts",
|
"build": "tsup ./src",
|
||||||
"publint": "publint",
|
"prepack": "yarn build",
|
||||||
"release": "yarn build && yarn test && yarn publint && yarn publish"
|
"publint": "attw --pack && publint"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
|
||||||
"import": "./dist/index.js",
|
"import": "./dist/index.js",
|
||||||
"require": "./dist/index.cjs"
|
"require": "./dist/index.cjs"
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./dist/*.d.ts",
|
|
||||||
"import": "./dist/*.js",
|
"import": "./dist/*.js",
|
||||||
"require": "./dist/*.cjs"
|
"require": "./dist/*.cjs"
|
||||||
}
|
}
|
||||||
|
@ -27,7 +28,9 @@
|
||||||
"hono": ">=4.5.*"
|
"hono": ">=4.5.*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"hono": "^4.5.0",
|
"hono": "^4.5.0",
|
||||||
"tsup": "^8.0.1"
|
"publint": "^0.3.9",
|
||||||
|
"tsup": "^8.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,10 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
"outDir": "./dist"
|
||||||
"outDir": "./dist",
|
}
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src/**/*.ts"
|
|
||||||
],
|
|
||||||
}
|
}
|
|
@ -2305,8 +2305,10 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/react-compat@workspace:packages/react-compat"
|
resolution: "@hono/react-compat@workspace:packages/react-compat"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
hono: "npm:^4.5.0"
|
hono: "npm:^4.5.0"
|
||||||
tsup: "npm:^8.0.1"
|
publint: "npm:^0.3.9"
|
||||||
|
tsup: "npm:^8.4.0"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
hono: ">=4.5.*"
|
hono: ">=4.5.*"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
|
Loading…
Reference in New Issue