From 6887c4a886c9842f7bb26c6e0a67e6eabe511b3a Mon Sep 17 00:00:00 2001 From: alechkos <93551621+alechkos@users.noreply.github.com> Date: Fri, 4 Oct 2024 07:22:19 +0300 Subject: [PATCH] fix: enable docs generation before the release (#3300) The commit fixes an issue where the node_modules\/.bin\/jsdoc is not found --- package.json | 2 +- tools/publish | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e7d31db..eddd25a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "mocha tests --recursive --timeout 5000", "test-single": "mocha", "shell": "node --experimental-repl-await ./shell.js", - "generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose" + "generate-docs": "npx jsdoc --configure .jsdoc.json --verbose" }, "repository": { "type": "git", diff --git a/tools/publish b/tools/publish index 9dd0da0..516707c 100755 --- a/tools/publish +++ b/tools/publish @@ -70,6 +70,8 @@ npm version $VERSION_ARGS || exit 1 git push && git push --tags || exit 1 +npm install + npm run generate-docs git add .