From b312522dffbabdb7d8db4ccee8c33f20a59f124d Mon Sep 17 00:00:00 2001 From: David Garcia Date: Thu, 18 Jun 2026 10:19:27 +0100 Subject: [PATCH 1/2] docs: complie ts insted js-doc script --- docs/Makefile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 24f2daed7..28fb22fa0 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -43,7 +43,7 @@ clean: # Generate output commands .PHONY: jsdoc jsdoc: - cd .. && ./node_modules/.bin/tsc -p tsconfig.build.json --noEmitOnError false; npm run js-doc + cd .. && npm run js-doc @echo @echo "JSDoc build finished. The API docs are in ../public/docs/." diff --git a/package.json b/package.json index aac57efa1..1bd40b6cb 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "prettier": "npx prettier \"{lib,examples,test}/**/*.{js,ts}\" --write", "full-clippy": "cargo clippy --all-targets --all-features -- -D warnings", "pre-push": "npm run prettier && cargo fmt && npm run full-clippy && napi build --platform && npm run eslint-fix", - "js-doc": "jsdoc ./lib -r -c js-doc-config.js", + "js-doc": "tsc -p tsconfig.build.json --noEmitOnError false; jsdoc ./lib -r -c js-doc-config.js", "artifacts": "napi artifacts", "create-npm-dirs": "napi create-npm-dirs", "build:debug": "napi build --platform", From 7a8f61b5e05ced58456506aa6a52c30bcbb4ac28 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Thu, 18 Jun 2026 11:20:07 +0100 Subject: [PATCH 2/2] docs: rollback edit, keep ts build within js-doc script --- docs/_utils/multiversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_utils/multiversion.sh b/docs/_utils/multiversion.sh index ca9a976ca..a40c56801 100755 --- a/docs/_utils/multiversion.sh +++ b/docs/_utils/multiversion.sh @@ -1,4 +1,4 @@ #!/bin/bash cd .. && sphinx-multiversion docs/source docs/_build/dirhtml \ - --pre-build 'sh -c "npm install && (./node_modules/.bin/tsc -p tsconfig.build.json --noEmitOnError false || true) && npm run js-doc && python docs/_utils/generate_api_pages.py"' + --pre-build 'sh -c "npm install && npm run js-doc && python docs/_utils/generate_api_pages.py"'