Skip to content

Commit

Permalink
chore: Upgrade jsdoc-api to v9 (#911)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valentin Agachi <github-com@agachi.name>
  • Loading branch information
renovate[bot] and avaly authored Sep 17, 2024
1 parent 8e21c8b commit d8cbb32
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 76 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ jobs:
env:
MONGOMS_VERSION: ${{ matrix.mongodb }}

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.6
with:
filter: tree:0
- uses: pnpm/action-setup@v4.0.0
- uses: actions/setup-node@v4.0.1
with:
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build:docs && git diff

lint:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ for (const doc of DOCS) {

const sourceTranspiled = transpileTS(source);

const jsdoc = jsdocApi.explainSync({ source: sourceTranspiled });
const jsdoc = await jsdocApi.explain({ source: sourceTranspiled });
const parsed = jsdocParse(jsdoc);

const intro = parsed.find((item) => item.kind === 'module' && item.name === 'intro');
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"scripts": {
"build": "./build.sh",
"docs": "node docs/build.js && docsify serve ./docs",
"build:docs": "node docs/build.js",
"docs": "pnpm build:docs && docsify serve ./docs",
"benchmark": "pnpm build && node --experimental-specifier-resolution=node ./benchmark/run.js",
"lint:ci": "./tests/build.sh && eslint .",
"lint": "eslint .",
Expand Down Expand Up @@ -75,7 +76,7 @@
"globals": "15.9.0",
"husky": "9.1.4",
"jest": "29.7.0",
"jsdoc-api": "8.1.1",
"jsdoc-api": "9.3.1",
"jsdoc-parse": "6.2.1",
"lint-staged": "15.2.9",
"mongodb": "6.9.0",
Expand Down
117 changes: 44 additions & 73 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8cbb32

Please sign in to comment.