Skip to content

Commit 8fb02ae

Browse files
committed
fix: add intlify/h3 package
1 parent a2338b1 commit 8fb02ae

35 files changed

+2836
-32
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
run: pnpm build
125125

126126
- name: Type checking
127-
run: pnpm typecheck:deno && pnpm typecheck:tsc -p ./tsconfig.ci.json
127+
run: pnpm typecheck
128128

129129
e2e:
130130
runs-on: ${{ matrix.os }}

eslint.config.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,21 @@ const config: ReturnType<typeof defineConfig> = defineConfig(
2828
stylistic(),
2929
comments({
3030
kazupon: {
31-
ignores: ['./scripts/**', './**/test/**', './**/src/**/*.test.ts', './**/src/**/*.test-d.ts']
31+
ignores: [
32+
'./**/playground/**',
33+
'./scripts/**',
34+
'./**/test/**',
35+
'./**/src/**/*.test.ts',
36+
'./**/src/**/*.test-d.ts',
37+
'./**/spec/**',
38+
'./**/src/**/*.spec.ts',
39+
'./**/src/**/*.spec-d.ts'
40+
]
3241
}
3342
}),
3443
jsdoc({
35-
typescript: 'syntax'
44+
typescript: 'syntax',
45+
ignores: ['./**/playground/**', './**/spec/**']
3646
}),
3747
imports({
3848
typescript: true,
@@ -91,6 +101,7 @@ const config: ReturnType<typeof defineConfig> = defineConfig(
91101
'pnpm-lock.yaml',
92102
'CHANGELOG.md',
93103
'.github/FUNDING.yml',
104+
'./**/playground/**',
94105
'design/**'
95106
]) as Linter.Config
96107
)

knip.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import type { KnipConfig } from 'knip'
22

33
export default {
4+
workspaces: {
5+
'packages/h3': {
6+
ignore: ['**/playground/**']
7+
}
8+
},
49
ignore: ['**/src/**.test-d.ts'],
5-
ignoreDependencies: ['lint-staged', 'tsx', '@vitest/coverage-v8']
10+
ignoreDependencies: ['lint-staged', '@vitest/coverage-v8']
611
} satisfies KnipConfig

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"type": "module",
2424
"scripts": {
25-
"build": "echo build ...",
25+
"build": "pnpm -r build",
26+
"build:docs": "pnpm -r build:docs",
2627
"changelog": "pnpx gh-changelogen --repo=intlify/srvmid",
2728
"clean": "git clean -df",
2829
"dev": "pnpx @eslint/config-inspector --config eslint.config.ts",
@@ -34,15 +35,12 @@
3435
"fix:prettier": "prettier . --write --experimental-cli",
3536
"lint": "pnpm run --color \"/^lint:/\"",
3637
"lint:eslint": "eslint . --cache",
37-
"lint:jsr": "pnpm -r --if-present lint:jsr",
3838
"lint:knip": "knip",
3939
"lint:prettier": "prettier . --check --experimental-cli",
40-
"lint:typecheck": "pnpm run --color \"/^typecheck:/\"",
4140
"prepare": "git config --local core.hooksPath .githooks",
42-
"release": "bumpp \"package.json\" \"packages/**/package.json\" \"packages/**/jsr.json\" --commit \"release: v\" --all --push --tag",
43-
"test": "echo test ...",
44-
"typecheck:deno": "pnpm -r --if-present typecheck:deno",
45-
"typecheck:tsc": "tsgo --noEmit --diagnostics"
41+
"release": "bumpp \"package.json\" \"packages/**/package.json\" --commit \"release: v\" --all --push --tag",
42+
"test": "vitest run --typecheck",
43+
"typecheck": "tsgo --noEmit --diagnostics"
4644
},
4745
"devDependencies": {
4846
"@eslint/compat": "^1.4.1",
@@ -70,7 +68,6 @@
7068
"knip": "^5.69.1",
7169
"lint-staged": "^16.2.6",
7270
"prettier": "^3.6.2",
73-
"tsx": "^4.20.6",
7471
"typescript": "^5.9.3",
7572
"typescript-eslint": "^8.46.4",
7673
"vitest": "^3.2.4"

packages/h3/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See the [`@intlify/h3` changelog](https://github.com/intlify/srvmid/blob/main/CHANGELOG.md)

packages/h3/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2023 kazuya kawaguchi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)