diff --git a/docs/generated/cli/affected-graph.md b/docs/generated/cli/affected-graph.md index 2a2dd1afc6..a37a51b606 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 cd34855c57..99d1723d7c 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 2a2dd1afc6..a37a51b606 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 cd34855c57..99d1723d7c 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 82c296b970..663a244b67 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 ef9cd17712..7f97cbc22e 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 c12e3ae9fd..b42a9180a7 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 24fb990be6..f36c505258 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 e9f935f389..cd376e5490 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 c7187b1ba2..a9c26d1d18 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.',