build(node-ws): lint published package (#1052)
parent
bcbb7e01c5
commit
3d7d482aff
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/node-ws
|
- run: yarn workspaces focus hono-middleware @hono/node-ws
|
||||||
- run: yarn workspace @hono/node-ws build
|
- run: yarn workspace @hono/node-ws build
|
||||||
|
- run: yarn workspace @hono/node-ws publint
|
||||||
- run: yarn test --coverage --project @hono/node-ws
|
- run: yarn test --coverage --project @hono/node-ws
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -2,23 +2,29 @@
|
||||||
"name": "@hono/node-ws",
|
"name": "@hono/node-ws",
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"description": "WebSocket helper for Node.js",
|
"description": "WebSocket helper for Node.js",
|
||||||
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tsc --noEmit && vitest --run",
|
"build": "tsup ./src/index.ts",
|
||||||
"build": "tsup ./src/index.ts --format esm,cjs --dts",
|
"prepack": "yarn build",
|
||||||
"publint": "publint",
|
"publint": "attw --pack && publint",
|
||||||
"release": "yarn build && yarn test && yarn publint && yarn publish"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.mts",
|
"import": {
|
||||||
"import": "./dist/index.mjs",
|
"types": "./dist/index.d.ts",
|
||||||
"require": "./dist/index.js"
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -28,14 +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/node-ws"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/honojs/middleware",
|
"homepage": "https://github.com/honojs/middleware",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"@hono/node-server": "^1.11.1",
|
"@hono/node-server": "^1.11.1",
|
||||||
"@types/ws": "^8",
|
"@types/node": "^20.14.8",
|
||||||
|
"@types/ws": "^8.18.0",
|
||||||
"hono": "^4.6.0",
|
"hono": "^4.6.0",
|
||||||
"tsup": "^8.0.1",
|
"publint": "^0.3.9",
|
||||||
|
"tsup": "^8.4.0",
|
||||||
"vitest": "^3.0.8"
|
"vitest": "^3.0.8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"types": [
|
"types": ["node", "vitest/globals", "ws"]
|
||||||
"vitest/globals"
|
}
|
||||||
]
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src/**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
15
yarn.lock
15
yarn.lock
|
@ -2693,10 +2693,13 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@hono/node-ws@workspace:packages/node-ws"
|
resolution: "@hono/node-ws@workspace:packages/node-ws"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@arethetypeswrong/cli": "npm:^0.17.4"
|
||||||
"@hono/node-server": "npm:^1.11.1"
|
"@hono/node-server": "npm:^1.11.1"
|
||||||
"@types/ws": "npm:^8"
|
"@types/node": "npm:^20.14.8"
|
||||||
|
"@types/ws": "npm:^8.18.0"
|
||||||
hono: "npm:^4.6.0"
|
hono: "npm:^4.6.0"
|
||||||
tsup: "npm:^8.0.1"
|
publint: "npm:^0.3.9"
|
||||||
|
tsup: "npm:^8.4.0"
|
||||||
vitest: "npm:^3.0.8"
|
vitest: "npm:^3.0.8"
|
||||||
ws: "npm:^8.17.0"
|
ws: "npm:^8.17.0"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -4842,12 +4845,12 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/ws@npm:^8":
|
"@types/ws@npm:^8.18.0":
|
||||||
version: 8.5.10
|
version: 8.18.0
|
||||||
resolution: "@types/ws@npm:8.5.10"
|
resolution: "@types/ws@npm:8.18.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node": "npm:*"
|
"@types/node": "npm:*"
|
||||||
checksum: e9af279b984c4a04ab53295a40aa95c3e9685f04888df5c6920860d1dd073fcc57c7bd33578a04b285b2c655a0b52258d34bee0a20569dca8defb8393e1e5d29
|
checksum: a56d2e0d1da7411a1f3548ce02b51a50cbe9e23f025677d03df48f87e4a3c72e1342fbf1d12e487d7eafa8dc670c605152b61bbf9165891ec0e9694b0d3ea8d4
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue