Skip to content

Commit

Permalink
chore: repo maintenance (#122)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* chore: remove format workflow

* chore: parallelize CI/CQ

* chore: fix deno release
  • Loading branch information
cyco130 authored Jan 22, 2024
1 parent 041ab84 commit 5ced1b3
Show file tree
Hide file tree
Showing 76 changed files with 1,354 additions and 1,527 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
run: pnpm run build

- name: Run code quality checks and tests
run: pnpm run test:prettier && pnpm test:packages
run: pnpm run cq
53 changes: 0 additions & 53 deletions .github/workflows/format.yml

This file was deleted.

4 changes: 2 additions & 2 deletions deno-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"@babel/core": "^7.23.7",
"@babel/preset-typescript": "^7.23.3",
"@babel/traverse": "^7.23.7",
"@cyco130/eslint-config": "^3.6.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/babel__core": "^7.20.5",
"@types/babel__traverse": "^7.20.5",
"@types/node": "^20.11.1",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
Expand Down
11 changes: 7 additions & 4 deletions deno-build/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ const externalModules: Record<string, string | undefined> = {

esbuild: `https://deno.land/x/esbuild@v${esbuildVersion}/mod.js`,

bun: "npm",
"bun-types": "npm",
"@cloudflare/kv-asset-handler": "npm",
"@cloudflare/workers-types": "npm",
"@fastly/js-compute": "npm",
"netlify-lambda-types": "npm",
"node-fetch-native": "npm",
"@whatwg-node/fetch": "npm",
archiver: "npm",
"aws-lambda": "npm",
bun: "npm",
"bun-types": "npm",
cpr: "npm",
cac: "npm",
"lambda-stream": "npm",
"netlify-lambda-types": "npm",
"node-fetch-native": "npm",
vite: "npm",

"mime-types": "esm",
Expand Down
6 changes: 3 additions & 3 deletions deno-build/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "NodeNext",
"resolveJsonModule": true
}
"moduleResolution": "Bundler",
"resolveJsonModule": true,
},
}
4 changes: 2 additions & 2 deletions examples/basic/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"@hattip/adapter-cloudflare-workers": "^0.0.40",
"@hattip/adapter-node": "^0.0.40",
"@types/node": "^20.11.1",
"wrangler": "^3.22.4"
"@types/node": "^20.11.5",
"wrangler": "^3.23.0"
}
}
4 changes: 2 additions & 2 deletions examples/vite/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@hattip/adapter-node": "^0.0.40",
"@hattip/core": "^0.0.40",
"@hattip/vite": "^0.0.40",
"hono": "^3.12.4",
"vite": "^5.0.11"
"hono": "^3.12.6",
"vite": "^5.0.12"
}
}
4 changes: 2 additions & 2 deletions examples/vite/hono/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node",
"types": ["vite/client", "@hattip/vite/vite-dev-server"]
}
"types": ["vite/client", "@hattip/vite/vite-dev-server"],
},
}
2 changes: 1 addition & 1 deletion examples/vite/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"@hattip/response": "^0.0.40",
"@hattip/router": "^0.0.40",
"@hattip/vite": "^0.0.40",
"vite": "^5.0.11"
"vite": "^5.0.12"
}
}
4 changes: 2 additions & 2 deletions examples/vite/playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node",
"types": ["vite/client", "@hattip/vite/vite-dev-server"]
}
"types": ["vite/client", "@hattip/vite/vite-dev-server"],
},
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "pnpm -r --filter=\"./packages/*/*\" run build",
"prepare": "husky install",
"precommit": "lint-staged",
"test": "pnpm run test:prettier && pnpm run test:packages && pnpm run ci",
"test": "pnpm run \"/^(cq|ci)$/\"",
"cq": "pnpm run /^test:/",
"ci": "cross-env CI=true pnpm -r --stream run ci",
"test:packages": "pnpm -r --stream run test",
"test:prettier": "prettier --check --ignore-path .gitignore --ignore-unknown . '!pnpm-lock.yaml' '!testbed/basic/fastly'",
Expand All @@ -22,10 +23,10 @@
"graphql": "^16.8.1",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.2.2",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"vite": "^5.0.11",
"vitest": "^1.2.0"
"vite": "^5.0.12",
"vitest": "^1.2.1"
},
"dependencies": {
"typescript": "^5.3.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"test:package": "publint --strict"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-aws-lambda/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
6 changes: 3 additions & 3 deletions packages/adapter/adapter-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
},
"dependencies": {
"@hattip/core": "workspace:*",
"bun-types": "^1.0.22"
"bun-types": "^1.0.25"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-bun/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
8 changes: 4 additions & 4 deletions packages/adapter/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"test:package": "publint --strict"
},
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.3.0",
"@cloudflare/workers-types": "^4.20231218.0",
"@cloudflare/kv-asset-handler": "^0.3.1",
"@cloudflare/workers-types": "^4.20240117.0",
"@hattip/core": "workspace:*"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-cloudflare-workers/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
4 changes: 2 additions & 2 deletions packages/adapter/adapter-deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@hattip/core": "workspace:*"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-deno/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
6 changes: 3 additions & 3 deletions packages/adapter/adapter-fastly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"test:package": "publint --strict"
},
"dependencies": {
"@fastly/js-compute": "^3.8.0",
"@fastly/js-compute": "^3.8.1",
"@hattip/core": "workspace:*"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-fastly/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
2 changes: 1 addition & 1 deletion packages/adapter/adapter-lagon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@hattip/core": "workspace:*"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@cyco130/eslint-config": "^3.6.2",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-lagon/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
4 changes: 2 additions & 2 deletions packages/adapter/adapter-netlify-edge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@hattip/core": "workspace:*"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-netlify-edge/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
4 changes: 2 additions & 2 deletions packages/adapter/adapter-netlify-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test:package": "publint --strict"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-netlify-functions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
4 changes: 2 additions & 2 deletions packages/adapter/adapter-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"test:package": "publint --strict"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@types/node": "^20.11.1",
"@cyco130/eslint-config": "^3.6.2",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
4 changes: 2 additions & 2 deletions packages/adapter/adapter-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"@hattip/polyfills": "workspace:*"
},
"devDependencies": {
"@cyco130/eslint-config": "^3.6.1",
"@cyco130/eslint-config": "^3.6.2",
"eslint": "^8.56.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.2.0"
"vitest": "^1.2.1"
},
"author": "Tessei Kameyama <tkamenoko@vivaldi.net>",
"repository": "https://github.com/hattipjs/hattip",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter/adapter-test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "Node"
}
"moduleResolution": "Node",
},
}
Loading

0 comments on commit 5ced1b3

Please sign in to comment.