build(graphql-server): lint published package (#1049)
parent
d905d009fe
commit
00011f9fe5
|
@ -19,6 +19,7 @@ jobs:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
- run: yarn workspaces focus hono-middleware @hono/graphql-server
|
- run: yarn workspaces focus hono-middleware @hono/graphql-server
|
||||||
- run: yarn workspace @hono/graphql-server build
|
- run: yarn workspace @hono/graphql-server build
|
||||||
|
- run: yarn workspace @hono/graphql-server publint
|
||||||
- run: yarn test --coverage --project @hono/graphql-server
|
- run: yarn test --coverage --project @hono/graphql-server
|
||||||
- uses: codecov/codecov-action@v5
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -3,24 +3,35 @@
|
||||||
"version": "0.5.1",
|
"version": "0.5.1",
|
||||||
"repository": "git@github.com:honojs/middleware.git",
|
"repository": "git@github.com:honojs/middleware.git",
|
||||||
"author": "Minghe Huang <h.minghe@gmail.com>",
|
"author": "Minghe Huang <h.minghe@gmail.com>",
|
||||||
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"module": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"default": "./dist/index.js"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://registry.npmjs.org/"
|
"registry": "https://registry.npmjs.org/"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest",
|
"build": "tsup ./src/index.ts",
|
||||||
"test:all": "yarn test",
|
"prepack": "yarn build",
|
||||||
"build": "rimraf dist && tsc",
|
"publint": "attw --pack && publint",
|
||||||
"lint": "eslint --ext js,ts src .eslintrc.js",
|
"test": "vitest"
|
||||||
"lint:fix": "eslint --ext js,ts src .eslintrc.js --fix",
|
|
||||||
"prerelease": "yarn build && yarn test",
|
|
||||||
"release": "np"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"hono": ">=3.0.0"
|
"hono": ">=3.0.0"
|
||||||
|
@ -29,25 +40,14 @@
|
||||||
"graphql": "^16.5.0"
|
"graphql": "^16.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@arethetypeswrong/cli": "^0.17.4",
|
||||||
"@cloudflare/workers-types": "^3.14.0",
|
"@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",
|
"hono": "^4.0.2",
|
||||||
"np": "^7.6.2",
|
"publint": "^0.3.9",
|
||||||
"prettier": "^2.7.1",
|
"tsup": "^8.4.0",
|
||||||
"rimraf": "^3.0.2",
|
|
||||||
"typescript": "^4.7.4",
|
|
||||||
"vitest": "^3.0.8"
|
"vitest": "^3.0.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,9 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"rootDir": "./src",
|
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"types": ["vitest/globals"]
|
"types": ["vitest/globals"]
|
||||||
},
|
}
|
||||||
"include": ["src/**/*.ts"]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue