Skip to content

Commit 8762108

Browse files
authored
Merge pull request #9 from hasib-devs/next
Dependency Updates
2 parents c4d9925 + 229942f commit 8762108

File tree

22 files changed

+493
-430
lines changed

22 files changed

+493
-430
lines changed

.github/workflows/debug.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
- name: Set up Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
registry-url: "https://registry.npmjs.org"
2828
cache: "pnpm"
2929

3030
- name: Install dependencies
31-
run: pnpm install
31+
run: pnpm install --frozen-lockfile
3232

3333
- name: Run lint
3434
run: pnpm lint

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
- name: Set up Node.js
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: 20
36+
node-version: 22
3737
registry-url: "https://registry.npmjs.org"
3838
cache: "pnpm"
3939

4040
- name: Install dependencies
41-
run: pnpm install
41+
run: pnpm install --frozen-lockfile
4242

4343
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
4444
run: pnpm audit signatures

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvm use 22

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ pnpm install hono reflect-metadata
4040
import 'reflect-metadata';
4141
```
4242

43+
4. Its important to set these options in `tsconfig.json` file of your project:
44+
```json
45+
{
46+
"emitDecoratorMetadata": true,
47+
"experimentalDecorators": true
48+
}
49+
```
50+
4351
# 🚀 Quick Start
4452

4553
### 1. Create Controller

eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ export default [
2323
rules: {
2424
// TypeScript rules
2525
'@typescript-eslint/consistent-type-imports': 'error',
26-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
27-
'@typescript-eslint/no-explicit-any': 'warn',
26+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
2827
'@typescript-eslint/ban-ts-comment': 'warn',
2928
'@typescript-eslint/prefer-nullish-coalescing': 'error',
3029
'@typescript-eslint/prefer-optional-chain': 'error',
@@ -34,7 +33,6 @@ export default [
3433
'no-debugger': 'error',
3534
'eqeqeq': ['error', 'always'],
3635
'curly': 'error',
37-
'arrow-body-style': ['error', 'as-needed'],
3836

3937
// New ESLint 9.x rules
4038
'no-constant-binary-expression': 'error',

package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"src"
1414
],
1515
"engines": {
16-
"node": ">=20"
16+
"node": ">=22"
1717
},
1818
"scripts": {
19-
"build": "tsup src/index.ts --format esm,cjs --dts --clean --minify --sourcemap",
20-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch --sourcemap",
21-
"test": "node --loader ts-node/esm --test",
22-
"test:watch": "node --loader ts-node/esm --test --watch",
23-
"test:coverage": "node --experimental-test-coverage --loader ts-node/esm --test",
19+
"build": "tsup src/index.ts",
20+
"dev": "tsup src/index.ts --watch",
21+
"test": "tsx --test tests/**/*.spec.ts",
22+
"test:watch": "tsx --test --watch tests/**/*.spec.ts",
23+
"test:coverage": "tsx --test --experimental-test-coverage tests/**/*.spec.ts",
2424
"lint": "eslint .",
2525
"lint:fix": "eslint . --fix"
2626
},
@@ -35,24 +35,21 @@
3535
"author": "Hasibur Rahman",
3636
"license": "MIT",
3737
"description": "A routing controller package for Hono.js",
38-
"dependencies": {
39-
"hono": "^4.7.2",
40-
"reflect-metadata": "^0.2.2"
41-
},
38+
"dependencies": {},
4239
"peerDependencies": {
43-
"hono": "^4.7.2",
44-
"reflect-metadata": "^0.2.2"
40+
"hono": "^4.7.2"
4541
},
4642
"devDependencies": {
4743
"@swc/core": "^1.11.5",
4844
"@types/node": "^22.13.8",
4945
"@typescript-eslint/eslint-plugin": "^8.25.0",
5046
"@typescript-eslint/parser": "^8.25.0",
5147
"eslint": "^9.21.0",
48+
"fast-glob": "^3.3.3",
5249
"globals": "^16.0.0",
5350
"semantic-release": "^24.2.3",
54-
"ts-node": "^10.9.2",
5551
"tsup": "^8.4.0",
52+
"tsx": "^4.19.3",
5653
"typescript": "^5.8.2"
5754
},
5855
"repository": {

0 commit comments

Comments
 (0)