Skip to content

Commit

Permalink
Fix docs-site build (#1222)
Browse files Browse the repository at this point in the history
## What is this PR doing?

It fixes docs-site:build NX command.

## What problem is it solving?

It resolves the root cause of `npm run build` failing. 

## How is the problem addressed?

By adding `build-docs` as a dependency of `docs-site:build`. 

## Testing Instructions

- ensure all test pass
  • Loading branch information
bgrgicak authored Apr 10, 2024
1 parent 194e8df commit 3c1a0d3
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions packages/docs/site/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
"playground-client"
],
"targets": {
"build:json": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx typedoc --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-resolve-crossmodule-references --json packages/docs/site/src/model.json"
],
"parallel": false
}
},
"build-docs": {
"executor": "nx:run-commands",
"options": {
Expand All @@ -19,14 +28,13 @@
},
"dependsOn": ["build:json"]
},
"build:json": {
"build": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx typedoc --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-resolve-crossmodule-references --json packages/docs/site/src/model.json"
],
"parallel": false
}
"commands": ["docusaurus build"],
"cwd": "packages/docs/site"
},
"dependsOn": ["build-docs"]
},
"swizzle": {
"executor": "nx:run-commands",
Expand Down

0 comments on commit 3c1a0d3

Please sign in to comment.