Skip to content

Commit 770afa2

Browse files
committed
Support TypeDoc 0.28
1 parent 20a679a commit 770afa2

13 files changed

+1261
-1708
lines changed

.editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ indent_size = 4
99
end_of_line = lf
1010
insert_final_newline = true
1111
trim_trailing_whitespace = true
12-
13-
[package.json]
14-
indent_size = 2

.github/workflows/ci.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ jobs:
99
name: Node ${{ matrix.node }}
1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Set up Node
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version: ${{ matrix.node }}
17+
- name: Install pnpm
18+
run: npm i -g pnpm@10
1719
- name: Install
18-
run: npm ci
20+
run: pnpm install
1921
- name: Build
20-
run: npm run build
22+
run: pnpm build
2123
- name: Test
22-
run: npm run test
24+
run: pnpm test
2325
- name: Lint
24-
run: npm run lint
26+
run: pnpm lint

.github/workflows/pages.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Set up Node
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version: "20"
17+
- name: Install pnpm
18+
run: npm i -g pnpm@10
1719
- name: Install
18-
run: npm ci
20+
run: pnpm i
1921
- name: Build
20-
run: npm run build
22+
run: pnpm build
2123
- name: Build docs
22-
run: npm run docs -- src/testdata/infer.ts
24+
run: pnpm doc src/testdata/infer.ts
2325
- name: Deploy
2426
uses: JamesIves/[email protected]
2527
with:

.github/workflows/publish.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- id: check
@@ -18,23 +18,23 @@ jobs:
1818
diff-search: true
1919
- name: Set up Node
2020
if: steps.check.outputs.changed == 'true'
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: "20"
24+
- name: Install pnpm
25+
if: steps.check.outputs.changed == 'true'
26+
run: npm i -g pnpm@10
2427
- name: Install
2528
if: steps.check.outputs.changed == 'true'
26-
run: npm install
29+
run: pnpm install
2730
- name: Build
2831
if: steps.check.outputs.changed == 'true'
29-
run: npm run build
30-
- name: Setup publish token
31-
if: steps.check.outputs.changed == 'true'
32-
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
33-
env:
34-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
32+
run: pnpm build
3533
- name: Publish
3634
if: steps.check.outputs.changed == 'true'
3735
run: |
38-
npm publish --non-interactive
36+
pnpm publish
3937
git tag v$(jq .version package.json -r)
4038
git push --tags
39+
env:
40+
npm_config_//registry.npmjs.org/:_authToken: ${{ secrets.NPM_AUTH_TOKEN }}

.prettierignore

-4
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ npm install --save-dev typedoc-plugin-zod
1111
```jsonc
1212
// typedoc.json
1313
{
14-
"plugin": ["typedoc-plugin-zod"],
14+
"plugin": ["typedoc-plugin-zod"]
1515
}
1616
```
1717

dprint.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"indentWidth": 4,
3+
"typescript": {
4+
},
5+
"json": {
6+
},
7+
"markdown": {
8+
},
9+
"excludes": [
10+
"**/node_modules",
11+
"**/*-lock.json"
12+
],
13+
"plugins": [
14+
"https://plugins.dprint.dev/typescript-0.94.0.wasm",
15+
"https://plugins.dprint.dev/json-0.20.0.wasm",
16+
"https://plugins.dprint.dev/markdown-0.18.0.wasm"
17+
]
18+
}

0 commit comments

Comments
 (0)