Skip to content

Commit 51a5f76

Browse files
committed
chore: add build:doc script
- Adds a new script `build:doc` that generates the API documentation in `package.json`. It runs `@microsoft/api-documenter`. - Installs `@microsoft/api-documenter` to generate the API documentation.
1 parent b80a237 commit 51a5f76

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

package-lock.json

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
],
1212
"scripts": {
1313
"build": "rollup -c && api-extractor run --local",
14+
"build:doc": "npm run build && api-documenter markdown --input-folder temp --output-folder api-docs/markdown",
1415
"tsc": "tsc",
1516
"prepare": "npm run build",
1617
"test": "echo \"Error: no test specified\" && exit 1"
@@ -22,6 +23,7 @@
2223
"license": "MIT",
2324
"devDependencies": {
2425
"@mapbox/unitbezier": "^0.0.1",
26+
"@microsoft/api-documenter": "^7.19.7",
2527
"@microsoft/api-extractor": "^7.28.6",
2628
"@rollup/plugin-typescript": "^8.3.4",
2729
"@types/geojson": "^7946.0.10",

0 commit comments

Comments
 (0)