nx 20.8.0 → 20.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "20.8.0",
3
+ "version": "20.8.1",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -82,16 +82,16 @@
82
82
  }
83
83
  },
84
84
  "optionalDependencies": {
85
- "@nx/nx-darwin-arm64": "20.8.0",
86
- "@nx/nx-darwin-x64": "20.8.0",
87
- "@nx/nx-freebsd-x64": "20.8.0",
88
- "@nx/nx-linux-arm-gnueabihf": "20.8.0",
89
- "@nx/nx-linux-arm64-gnu": "20.8.0",
90
- "@nx/nx-linux-arm64-musl": "20.8.0",
91
- "@nx/nx-linux-x64-gnu": "20.8.0",
92
- "@nx/nx-linux-x64-musl": "20.8.0",
93
- "@nx/nx-win32-arm64-msvc": "20.8.0",
94
- "@nx/nx-win32-x64-msvc": "20.8.0"
85
+ "@nx/nx-darwin-arm64": "20.8.1",
86
+ "@nx/nx-darwin-x64": "20.8.1",
87
+ "@nx/nx-freebsd-x64": "20.8.1",
88
+ "@nx/nx-linux-arm-gnueabihf": "20.8.1",
89
+ "@nx/nx-linux-arm64-gnu": "20.8.1",
90
+ "@nx/nx-linux-arm64-musl": "20.8.1",
91
+ "@nx/nx-linux-x64-gnu": "20.8.1",
92
+ "@nx/nx-linux-x64-musl": "20.8.1",
93
+ "@nx/nx-win32-arm64-msvc": "20.8.1",
94
+ "@nx/nx-win32-x64-msvc": "20.8.1"
95
95
  },
96
96
  "nx-migrations": {
97
97
  "migrations": "./migrations.json",
@@ -65,9 +65,11 @@ async function runPluginInitGenerator(plugin, repoRoot = workspace_root_1.worksp
65
65
  }
66
66
  catch {
67
67
  // init generator does not exist, so this function should noop
68
- output_1.output.log({
69
- title: `No "init" generator found in ${plugin}. Skipping initialization.`,
70
- });
68
+ if (process.env.NX_VERBOSE_LOGGING === 'true') {
69
+ output_1.output.log({
70
+ title: `No "init" generator found in ${plugin}. Skipping initialization.`,
71
+ });
72
+ }
71
73
  return;
72
74
  }
73
75
  }
@@ -12,8 +12,9 @@ export declare function initCloud(installationSource: 'nx-init' | 'nx-init-angul
12
12
  export declare function addVsCodeRecommendedExtensions(repoRoot: string, extensions: string[]): void;
13
13
  export declare function markRootPackageJsonAsNxProjectLegacy(repoRoot: string, cacheableScripts: string[], pmc: PackageManagerCommands): void;
14
14
  export declare function markPackageJsonAsNxProject(packageJsonPath: string): void;
15
- export declare function printFinalMessage({ learnMoreLink, }: {
15
+ export declare function printFinalMessage({ learnMoreLink, appendLines, }: {
16
16
  learnMoreLink?: string;
17
+ appendLines?: string[];
17
18
  }): void;
18
19
  export declare function isMonorepo(packageJson: PackageJson): boolean;
19
20
  export declare function isCRA(packageJson: PackageJson): boolean;
@@ -248,7 +248,7 @@ function markPackageJsonAsNxProject(packageJsonPath) {
248
248
  json.nx = {};
249
249
  (0, fileutils_1.writeJsonFile)(packageJsonPath, json);
250
250
  }
251
- function printFinalMessage({ learnMoreLink, }) {
251
+ function printFinalMessage({ learnMoreLink, appendLines, }) {
252
252
  const pmc = (0, package_manager_1.getPackageManagerCommand)();
253
253
  output_1.output.success({
254
254
  title: '🎉 Done!',
@@ -256,6 +256,7 @@ function printFinalMessage({ learnMoreLink, }) {
256
256
  `- Run "${(0, child_process_2.getRunNxBaseCommand)(pmc)} run-many -t build" to run the build target for every project in the workspace. Run it again to replay the cached computation. https://nx.dev/features/cache-task-results`,
257
257
  `- Run "${(0, child_process_2.getRunNxBaseCommand)(pmc)} graph" to see the graph of projects and tasks in your workspace. https://nx.dev/core-features/explore-graph`,
258
258
  learnMoreLink ? `- Learn more at ${learnMoreLink}.` : undefined,
259
+ ...(appendLines ?? []),
259
260
  ].filter(Boolean),
260
261
  });
261
262
  }
@@ -45,11 +45,6 @@ async function initHandler(options) {
45
45
  const _isTurborepo = (0, fs_1.existsSync)('turbo.json');
46
46
  const _isMonorepo = _isNonJs ? false : (0, utils_1.isMonorepo)(packageJson);
47
47
  const _isCRA = _isNonJs ? false : (0, utils_1.isCRA)(packageJson);
48
- const learnMoreLink = _isTurborepo
49
- ? 'https://nx.dev/recipes/adopting-nx/from-turborepo'
50
- : _isMonorepo
51
- ? 'https://nx.dev/getting-started/tutorials/npm-workspaces-tutorial'
52
- : 'https://nx.dev/recipes/adopting-nx/adding-to-existing-project';
53
48
  /**
54
49
  * Turborepo users must have set up individual scripts already, and we keep the transition as minimal as possible.
55
50
  * We log a message during the conversion process in addNxToTurborepo about how they can learn more about the power
@@ -61,7 +56,7 @@ async function initHandler(options) {
61
56
  interactive: options.interactive,
62
57
  });
63
58
  (0, utils_1.printFinalMessage)({
64
- learnMoreLink,
59
+ learnMoreLink: 'https://nx.dev/recipes/adopting-nx/from-turborepo',
65
60
  });
66
61
  return;
67
62
  }
@@ -118,7 +113,13 @@ async function initHandler(options) {
118
113
  await (0, utils_1.initCloud)('nx-init');
119
114
  }
120
115
  (0, utils_1.printFinalMessage)({
121
- learnMoreLink,
116
+ appendLines: _isMonorepo
117
+ ? [
118
+ `- Learn how Nx helps manage your TypeScript monorepo at https://nx.dev/features/maintain-ts-monorepos.`,
119
+ ]
120
+ : [
121
+ `- Learn how Nx works with any type of project at https://nx.dev/recipes/adopting-nx/adding-to-existing-project.`,
122
+ ],
122
123
  });
123
124
  }
124
125
  const npmPackageToPluginMap = {
Binary file
@@ -362,6 +362,8 @@ function getSerializedArgsForTask(task, isVerbose) {
362
362
  function shouldStreamOutput(task, initiatingProject) {
363
363
  if (process.env.NX_STREAM_OUTPUT === 'true')
364
364
  return true;
365
+ if (process.env.NX_STREAM_OUTPUT === 'false')
366
+ return false;
365
367
  if (longRunningTask(task))
366
368
  return true;
367
369
  if (task.target.project === initiatingProject)