Skip to content

Commit a7ceddf

Browse files
jonphippsclaude
andcommitted
optimize(nx): remove duplicate theme dependency declarations in standard sites
- Remove explicit theme dependency from build target dependsOn arrays - Keep only "^build" in dependsOn to work with implicitDependencies - Change "docusaurus-no-theme" input to "docusaurus" to track theme changes - Eliminates redundant dependency tracking for better build cache efficiency 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6cb9b92 commit a7ceddf

File tree

8 files changed

+33
-58
lines changed

8 files changed

+33
-58
lines changed

packages/theme/project.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,28 @@
55
"projectType": "library",
66
"tags": ["library", "theme"],
77
"targets": {
8+
"build:tsc": {
9+
"executor": "@nx/js:tsc",
10+
"options": {
11+
"outputPath": "../../dist",
12+
"tsConfig": "packages/theme/tsconfig.build.json",
13+
"main": "packages/theme/src/index.ts"
14+
},
15+
"outputs": ["{workspaceRoot}/dist"],
16+
"cache": true,
17+
"inputs": [
18+
"production",
19+
"{projectRoot}/src/**/*",
20+
"{projectRoot}/tsconfig.build.json",
21+
"{projectRoot}/package.json"
22+
]
23+
},
824
"build": {
925
"executor": "nx:run-commands",
1026
"options": {
1127
"commands": [
12-
"pnpm exec tsup",
13-
"tsc --project tsconfig.build.json"
28+
"nx run @ifla/theme:build:tsc",
29+
"pnpm exec tsup"
1430
],
1531
"cwd": "packages/theme",
1632
"parallel": false
@@ -23,7 +39,8 @@
2339
"{projectRoot}/tsup.config.ts",
2440
"{projectRoot}/tsconfig.build.json",
2541
"{projectRoot}/package.json"
26-
]
42+
],
43+
"dependsOn": ["build:tsc"]
2744
},
2845
"test": {
2946
"executor": "@nx/vite:test",

standards/FRBR/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313
},
1414
"outputs": ["{projectRoot}/build"],
1515
"cache": true,
16-
"dependsOn": [
17-
"^build",
18-
{
19-
"target": "build",
20-
"projects": ["@ifla/theme"]
21-
}
22-
],
23-
"inputs": ["production", "^production", "docusaurus-no-theme"]
16+
"dependsOn": ["^build"],
17+
"inputs": ["production", "^production", "docusaurus"]
2418
},
2519
"start": {
2620
"executor": "nx:run-commands",

standards/ISBDM/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313
},
1414
"outputs": ["{projectRoot}/build"],
1515
"cache": true,
16-
"dependsOn": [
17-
"^build",
18-
{
19-
"target": "build",
20-
"projects": ["@ifla/theme"]
21-
}
22-
],
23-
"inputs": ["production", "^production", "docusaurus-no-theme"]
16+
"dependsOn": ["^build"],
17+
"inputs": ["production", "^production", "docusaurus"]
2418
},
2519
"start": {
2620
"executor": "nx:run-commands",

standards/LRM/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313
},
1414
"outputs": ["{projectRoot}/build"],
1515
"cache": true,
16-
"dependsOn": [
17-
"^build",
18-
{
19-
"target": "build",
20-
"projects": ["@ifla/theme"]
21-
}
22-
],
23-
"inputs": ["production", "^production", "docusaurus-no-theme"]
16+
"dependsOn": ["^build"],
17+
"inputs": ["production", "^production", "docusaurus"]
2418
},
2519
"start": {
2620
"executor": "nx:run-commands",

standards/isbd/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313
},
1414
"outputs": ["{projectRoot}/build"],
1515
"cache": true,
16-
"dependsOn": [
17-
"^build",
18-
{
19-
"target": "build",
20-
"projects": ["@ifla/theme"]
21-
}
22-
],
23-
"inputs": ["production", "^production", "docusaurus-no-theme"]
16+
"dependsOn": ["^build"],
17+
"inputs": ["production", "^production", "docusaurus"]
2418
},
2519
"start": {
2620
"executor": "nx:run-commands",

standards/muldicat/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@
3030
},
3131
"outputs": ["{projectRoot}/build"],
3232
"cache": true,
33-
"dependsOn": [
34-
"^build",
35-
{
36-
"target": "build",
37-
"projects": ["@ifla/theme"]
38-
}
39-
],
40-
"inputs": ["production", "^production", "docusaurus-no-theme"]
33+
"dependsOn": ["^build"],
34+
"inputs": ["production", "^production", "docusaurus"]
4135
},
4236
"start": {
4337
"executor": "nx:run-commands",

standards/newtest/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313
},
1414
"outputs": ["{projectRoot}/build"],
1515
"cache": true,
16-
"dependsOn": [
17-
"^build",
18-
{
19-
"target": "build",
20-
"projects": ["@ifla/theme"]
21-
}
22-
],
16+
"dependsOn": ["^build"],
2317
"inputs": ["production", "^production", "docusaurus"]
2418
},
2519
"start": {

standards/unimarc/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313
},
1414
"outputs": ["{projectRoot}/build"],
1515
"cache": true,
16-
"dependsOn": [
17-
"^build",
18-
{
19-
"target": "build",
20-
"projects": ["@ifla/theme"]
21-
}
22-
],
23-
"inputs": ["production", "^production", "docusaurus-no-theme"]
16+
"dependsOn": ["^build"],
17+
"inputs": ["production", "^production", "docusaurus"]
2418
},
2519
"start": {
2620
"executor": "nx:run-commands",

0 commit comments

Comments
 (0)