nx 20.1.0-canary.20241029-4b70d1b → 20.1.0-canary.20241031-ce05a98

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.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{8476:()=>{}},s=>{var e;e=8476,s(s.s=e)}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{71970:()=>{}},s=>{var e;e=71970,s(s.s=e)}]);
Binary file
@@ -6,7 +6,7 @@ const fileutils_1 = require("../../../utils/fileutils");
6
6
  const workspace_root_1 = require("../../../utils/workspace-root");
7
7
  const fs_1 = require("fs");
8
8
  function jsPluginConfig(nxJson) {
9
- const nxJsonConfig = nxJson?.pluginsConfig?.['@nx/js'] ?? nxJson?.pluginsConfig?.['@nrwl/js'];
9
+ const nxJsonConfig = nxJson?.pluginsConfig?.['@nx/js'];
10
10
  // using lerna _before_ installing deps is causing an issue when parsing lockfile.
11
11
  // See: https://github.com/lerna/lerna/issues/3807
12
12
  // Note that previous attempt to fix this caused issues with Nx itself, thus we're checking
@@ -42,14 +42,7 @@ function jsPluginConfig(nxJson) {
42
42
  packageJsonDeps['@nx/next'] ||
43
43
  packageJsonDeps['@nx/react'] ||
44
44
  packageJsonDeps['@nx/angular'] ||
45
- packageJsonDeps['@nx/web'] ||
46
- packageJsonDeps['@nrwl/workspace'] ||
47
- packageJsonDeps['@nrwl/js'] ||
48
- packageJsonDeps['@nrwl/node'] ||
49
- packageJsonDeps['@nrwl/next'] ||
50
- packageJsonDeps['@nrwl/react'] ||
51
- packageJsonDeps['@nrwl/angular'] ||
52
- packageJsonDeps['@nrwl/web']) {
45
+ packageJsonDeps['@nx/web']) {
53
46
  return {
54
47
  analyzePackageJson: true,
55
48
  analyzeLockfile,
@@ -21,7 +21,8 @@ const get_cloud_options_1 = require("../nx-cloud/utilities/get-cloud-options");
21
21
  const is_ci_1 = require("../utils/is-ci");
22
22
  const output_1 = require("../utils/output");
23
23
  function dbCacheEnabled(nxJson = (0, nx_json_1.readNxJson)()) {
24
- return (process.env.NX_DISABLE_DB !== 'true' &&
24
+ return (!native_1.IS_WASM &&
25
+ process.env.NX_DISABLE_DB !== 'true' &&
25
26
  nxJson.useLegacyCache !== true &&
26
27
  process.env.NX_DB_CACHE !== 'false');
27
28
  }
@@ -110,9 +110,7 @@ function generateExecutorOverviewOutput({ pluginName, name, description, }) {
110
110
  },
111
111
  {
112
112
  text: `${pluginName}:${name}` +
113
- (pluginName.startsWith('@nrwl/')
114
- ? chalk.dim(` (v${versions_1.nxVersion})`)
115
- : ''),
113
+ (pluginName.startsWith('@nx/') ? chalk.dim(` (v${versions_1.nxVersion})`) : ''),
116
114
  padding: [1, 0, 0, 0],
117
115
  },
118
116
  ]);
@@ -220,14 +218,10 @@ function generateExamplesOutput(schema) {
220
218
  // TODO: generalize link generation so it works for non @nx plugins as well
221
219
  function generateLinkOutput({ pluginName, name, type, }) {
222
220
  const nxPackagePrefix = '@nx/';
223
- const nrwlPackagePrefix = '@nrwl/';
224
- if (!pluginName.startsWith(nxPackagePrefix) &&
225
- !pluginName.startsWith(nrwlPackagePrefix)) {
221
+ if (!pluginName.startsWith(nxPackagePrefix)) {
226
222
  return '';
227
223
  }
228
- const link = `https://nx.dev/nx-api/${pluginName.substring(pluginName.startsWith(nxPackagePrefix)
229
- ? nxPackagePrefix.length
230
- : nrwlPackagePrefix.length)}/${type}/${name}`;
224
+ const link = `https://nx.dev/nx-api/${pluginName.substring(nxPackagePrefix.length)}/${type}/${name}`;
231
225
  return `\n\n${chalk.dim('Find more information and examples at:')} ${chalk.bold(link)}`;
232
226
  }
233
227
  /**
@@ -12,6 +12,6 @@ export declare class TaskHistory {
12
12
  }
13
13
  /**
14
14
  * This function returns the singleton instance of TaskHistory
15
- * @returns singleton instance of TaskHistory, null if database is disabled or WASM is not enabled
15
+ * @returns singleton instance of TaskHistory, null if database is disabled or WASM is enabled
16
16
  */
17
17
  export declare function getTaskHistory(): TaskHistory | null;
@@ -38,10 +38,10 @@ exports.TaskHistory = TaskHistory;
38
38
  let taskHistory;
39
39
  /**
40
40
  * This function returns the singleton instance of TaskHistory
41
- * @returns singleton instance of TaskHistory, null if database is disabled or WASM is not enabled
41
+ * @returns singleton instance of TaskHistory, null if database is disabled or WASM is enabled
42
42
  */
43
43
  function getTaskHistory() {
44
- if (process.env.NX_DISABLE_DB === 'true' || !native_1.IS_WASM) {
44
+ if (process.env.NX_DISABLE_DB === 'true' || native_1.IS_WASM) {
45
45
  return null;
46
46
  }
47
47
  if (!taskHistory) {