diff --git a/docs/generated/cli/affected-graph.md b/docs/generated/cli/affected-graph.md index 2a2dd1afc64a8..a37a51b606e39 100644 --- a/docs/generated/cli/affected-graph.md +++ b/docs/generated/cli/affected-graph.md @@ -163,6 +163,6 @@ Choose whether to view the projects or task graph Type: `boolean` -Default: `false` +Default: `true` Watch for changes to project graph and update in-browser diff --git a/docs/generated/cli/graph.md b/docs/generated/cli/graph.md index cd34855c571f2..99d1723d7c8cd 100644 --- a/docs/generated/cli/graph.md +++ b/docs/generated/cli/graph.md @@ -185,6 +185,6 @@ Choose whether to view the projects or task graph Type: `boolean` -Default: `false` +Default: `true` Watch for changes to project graph and update in-browser diff --git a/docs/generated/packages/nx/documents/affected-dep-graph.md b/docs/generated/packages/nx/documents/affected-dep-graph.md index 2a2dd1afc64a8..a37a51b606e39 100644 --- a/docs/generated/packages/nx/documents/affected-dep-graph.md +++ b/docs/generated/packages/nx/documents/affected-dep-graph.md @@ -163,6 +163,6 @@ Choose whether to view the projects or task graph Type: `boolean` -Default: `false` +Default: `true` Watch for changes to project graph and update in-browser diff --git a/docs/generated/packages/nx/documents/dep-graph.md b/docs/generated/packages/nx/documents/dep-graph.md index cd34855c571f2..99d1723d7c8cd 100644 --- a/docs/generated/packages/nx/documents/dep-graph.md +++ b/docs/generated/packages/nx/documents/dep-graph.md @@ -185,6 +185,6 @@ Choose whether to view the projects or task graph Type: `boolean` -Default: `false` +Default: `true` Watch for changes to project graph and update in-browser diff --git a/packages/nx/src/command-line/affected/affected.ts b/packages/nx/src/command-line/affected/affected.ts index 82c296b970318..663a244b6705f 100644 --- a/packages/nx/src/command-line/affected/affected.ts +++ b/packages/nx/src/command-line/affected/affected.ts @@ -94,7 +94,7 @@ export async function affected( return await generateGraph( { - watch: false, + watch: true, open: true, view: 'tasks', targets: nxArgs.targets, diff --git a/packages/nx/src/command-line/graph/graph.ts b/packages/nx/src/command-line/graph/graph.ts index ef9cd1771201d..7f97cbc22ee79 100644 --- a/packages/nx/src/command-line/graph/graph.ts +++ b/packages/nx/src/command-line/graph/graph.ts @@ -539,7 +539,7 @@ async function startServer( environmentJs: string, host: string, port = 4211, - watchForchanges = false, + watchForchanges = true, affected: string[] = [], focus: string = null, groupByFolder: boolean = false, diff --git a/packages/nx/src/command-line/release/publish.ts b/packages/nx/src/command-line/release/publish.ts index c12e3ae9fddc5..b42a9180a7fc3 100644 --- a/packages/nx/src/command-line/release/publish.ts +++ b/packages/nx/src/command-line/release/publish.ts @@ -173,9 +173,10 @@ async function runPublishOnProjects( .filter((projectName) => projectHasTarget(projectGraph.nodes[projectName], requiredTargetName) ); + await generateGraph( { - watch: false, + watch: true, all: false, open: true, view: 'tasks', diff --git a/packages/nx/src/command-line/run-many/run-many.ts b/packages/nx/src/command-line/run-many/run-many.ts index 24fb990be6494..f36c50525886d 100644 --- a/packages/nx/src/command-line/run-many/run-many.ts +++ b/packages/nx/src/command-line/run-many/run-many.ts @@ -54,7 +54,7 @@ export async function runMany( const projectNames = projects.map((t) => t.name); return await generateGraph( { - watch: false, + watch: true, open: true, view: 'tasks', all: nxArgs.all, diff --git a/packages/nx/src/command-line/run/run-one.ts b/packages/nx/src/command-line/run/run-one.ts index e9f935f389512..cd376e54904ab 100644 --- a/packages/nx/src/command-line/run/run-one.ts +++ b/packages/nx/src/command-line/run/run-one.ts @@ -70,7 +70,7 @@ export async function runOne( return await generateGraph( { - watch: false, + watch: true, open: true, view: 'tasks', targets: nxArgs.targets, diff --git a/packages/nx/src/command-line/yargs-utils/shared-options.ts b/packages/nx/src/command-line/yargs-utils/shared-options.ts index c7187b1ba27e1..a9c26d1d18bac 100644 --- a/packages/nx/src/command-line/yargs-utils/shared-options.ts +++ b/packages/nx/src/command-line/yargs-utils/shared-options.ts @@ -310,7 +310,7 @@ export function withDepGraphOptions(yargs: Argv) { .option('watch', { describe: 'Watch for changes to project graph and update in-browser', type: 'boolean', - default: false, + default: true, }) .option('open', { describe: 'Open the project graph in the browser.',