Skip to content

Commit f221bc7

Browse files
committed
docs: complie ts insted js-doc script
1 parent 4280bc0 commit f221bc7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ clean:
4343
# Generate output commands
4444
.PHONY: jsdoc
4545
jsdoc:
46-
cd .. && ./node_modules/.bin/tsc -p tsconfig.build.json --noEmitOnError false; npm run js-doc
46+
cd .. && npm run js-doc
4747
@echo
4848
@echo "JSDoc build finished. The API docs are in ../public/docs/."
4949

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"prettier": "npx prettier \"{lib,examples,test}/**/*.{js,ts}\" --write",
6161
"full-clippy": "cargo clippy --all-targets --all-features -- -D warnings",
6262
"pre-push": "npm run prettier && cargo fmt && npm run full-clippy && napi build --platform && npm run eslint-fix",
63-
"js-doc": "jsdoc ./lib -r -c js-doc-config.js",
63+
"js-doc": "tsc -p tsconfig.build.json --noEmitOnError false; jsdoc ./lib -r -c js-doc-config.js",
6464
"artifacts": "napi artifacts",
6565
"create-npm-dirs": "napi create-npm-dirs",
6666
"build:debug": "napi build --platform",

0 commit comments

Comments
 (0)