Skip to content

Commit

Permalink
publish API docs JSON as @react-router/dev/api-docs.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey committed Sep 4, 2024
1 parent 26cc9d9 commit 9952914
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@remix-run/react-router",
"private": true,
"scripts": {
"build": "rollup -c",
"build": "rollup -c && typedoc",
"clean": "git clean -fdX .",
"clean:build": "git clean -fdx -e node_modules .",
"clean:integration": "node ./integration/helpers/cleanup.mjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-router-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"types": "./dist/vite-cloudflare.d.ts",
"default": "./dist/vite-cloudflare.js"
},
"./package.json": "./package.json"
"./package.json": "./package.json",
"./api-docs.json": "./dist/api-docs.json"
},
"bin": {
"react-router": "bin.js"
Expand Down
2 changes: 1 addition & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"entryPoints": ["packages/*"],
"entryPointStrategy": "packages",
"includeVersion": false,
"json": "./public/api.json",
"json": "./packages/react-router-dev/dist/api-docs.json",
"out": "./public"
}

0 comments on commit 9952914

Please sign in to comment.