Skip to content

Commit 6230528

Browse files
committed
chore: still trying to fix nx
1 parent 703d62d commit 6230528

File tree

5 files changed

+57
-9
lines changed

5 files changed

+57
-9
lines changed

cli/create-tsrouter-app/project.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "create-tsrouter-app",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "cli/create-tsrouter-app/src",
5+
"projectType": "application",
6+
"targets": {
7+
"build": {
8+
"executor": "nx:run-commands",
9+
"options": {
10+
"command": "tsc -p cli/create-tsrouter-app/tsconfig.json"
11+
},
12+
"dependsOn": ["^build"]
13+
}
14+
},
15+
"implicitDependencies": ["engine", "templates"]
16+
}

nx.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3-
"targetDependencies": {
4-
"build": [
5-
{
6-
"target": "build",
7-
"projects": "dependencies"
8-
}
9-
]
3+
"namedInputs": {
4+
"default": ["{projectRoot}/**/*"],
5+
"production": ["default"]
6+
},
7+
"targetDefaults": {
8+
"build": {
9+
"inputs": ["production", "^production"],
10+
"dependsOn": ["^build"]
11+
}
1012
}
1113
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"cleanNodeModules": "pnpm -r exec rm -rf node_modules",
8-
"build": "nx affected --target=build",
8+
"build": "nx run-many --target=build",
99
"cipublish": "node scripts/publish.js",
1010
"test": "nx run-many -t test"
1111
},
@@ -36,4 +36,4 @@
3636
"dependencies": {
3737
"@tanstack/config": "^0.16.2"
3838
}
39-
}
39+
}

packages/engine/project.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "engine",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "packages/engine/src",
5+
"projectType": "library",
6+
"targets": {
7+
"build": {
8+
"executor": "nx:run-commands",
9+
"options": {
10+
"command": "tsc -p packages/engine/tsconfig.json"
11+
},
12+
"dependsOn": ["^build"]
13+
}
14+
},
15+
"implicitDependencies": ["templates"]
16+
}

packages/templates/project.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "templates",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "packages/templates/src",
5+
"projectType": "library",
6+
"targets": {
7+
"build": {
8+
"executor": "nx:run-commands",
9+
"options": {
10+
"command": "tsc -p packages/templates/tsconfig.json"
11+
}
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)