Skip to content

Commit e151df8

Browse files
authored
Merge pull request #298 from metabrainz/fix-jsdocs
chore: Github workflow: fix JSDoc building action
2 parents 5302f88 + f803112 commit e151df8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/jsdoc-gh-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: NPM install
1616
uses: bahmutov/npm-install@v1
1717

18+
- name: Build project
19+
run: yarn build
20+
1821
- name: Build JSDoc
1922
uses: andstor/jsdoc-action@v1
2023
with:

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"type": "npm",
14-
"script": "build-js",
14+
"script": "build",
1515
"group": "build",
1616
"problemMatcher": []
1717
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"description": "A JavaScript data access module for BookBrainz",
55
"main": "lib/index.js",
66
"scripts": {
7-
"build-js": "rimraf lib/* && babel src --out-dir lib --extensions .js,.ts && tsc",
7+
"build": "rimraf lib/* && babel src --out-dir lib --extensions .js,.ts && tsc",
88
"build-js-for-test": "rimraf lib/* && babel src --out-dir lib --source-maps inline --extensions .js,.ts",
99
"lint": "eslint .",
1010
"lint-errors": "eslint --quiet .",
11-
"prepublishOnly": "yarn build-js",
11+
"prepublishOnly": "yarn build",
1212
"test": "yarn build-js-for-test && yarn lint-errors && mocha",
1313
"test-with-report": "mocha --reporter json --reporter-option output=coverage/test-results.json",
1414
"test-ci": "yarn build-js-for-test && yarn lint-errors && yarn test-with-report",
1515
"dupreport": "jsinspect src/ || true",
16-
"nodemon": "nodemon --watch './src/' --exec 'yarn build-js'"
16+
"nodemon": "nodemon --watch './src/' --exec 'yarn build'"
1717
},
1818
"files": [
1919
"lib/**/*"

0 commit comments

Comments
 (0)