build(graphql-server): lint published package (#1049)

pull/1072/head
Jonathan Haines 2025-03-27 13:17:41 +11:00 committed by GitHub
parent d905d009fe
commit 00011f9fe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 56 additions and 1478 deletions

View File

@ -19,6 +19,7 @@ jobs:
node-version: 18.x
- run: yarn workspaces focus hono-middleware @hono/graphql-server
- run: yarn workspace @hono/graphql-server build
- run: yarn workspace @hono/graphql-server publint
- run: yarn test --coverage --project @hono/graphql-server
- uses: codecov/codecov-action@v5
with:

View File

@ -3,24 +3,35 @@
"version": "0.5.1",
"repository": "git@github.com:honojs/middleware.git",
"author": "Minghe Huang <h.minghe@gmail.com>",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"test": "vitest",
"test:all": "yarn test",
"build": "rimraf dist && tsc",
"lint": "eslint --ext js,ts src .eslintrc.js",
"lint:fix": "eslint --ext js,ts src .eslintrc.js --fix",
"prerelease": "yarn build && yarn test",
"release": "np"
"build": "tsup ./src/index.ts",
"prepack": "yarn build",
"publint": "attw --pack && publint",
"test": "vitest"
},
"peerDependencies": {
"hono": ">=3.0.0"
@ -29,22 +40,11 @@
"graphql": "^16.5.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@cloudflare/workers-types": "^3.14.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.5.0",
"eslint-define-config": "^1.4.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import-x": "^4.1.1",
"eslint-plugin-n": "^17.10.2",
"hono": "^4.0.2",
"np": "^7.6.2",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"typescript": "^4.7.4",
"publint": "^0.3.9",
"tsup": "^8.4.0",
"vitest": "^3.0.8"
},
"engines": {

View File

@ -1,9 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": ["vitest/globals"]
},
"include": ["src/**/*.ts"]
}
}

1485
yarn.lock

File diff suppressed because it is too large Load Diff