8000 fix(core): add target options for .nx nx.json (#18476) · nrwl/nx@622e0e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 622e0e0

Browse files
authored
fix(core): add target options for .nx nx.json (#18476)
1 parent 3565643 commit 622e0e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/nx/src/command-line/init/implementation/dot-nx/add-nx-scripts.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,15 @@ export function writeMinimalNxJson(host: Tree, version: string) {
5656
default: {
5757
runner: 'nx/tasks-runners/default',
5858
options: {
59-
cacheableOperations: [],
59+
cacheableOperations: ['build', 'lint', 'test', 'e2e'],
6060
},
6161
},
6262
},
63+
targetDefaults: {
64+
build: {
65+
dependsOn: ['^build'],
66+
},
67+
},
6368
installation: {
6469
version: version.trimEnd(),
6570
},

0 commit comments

Comments
 (0)
0