nx 20.2.0-beta.3 → 20.2.0-beta.5

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],{94357:()=>{}},s=>{var e;e=94357,s(s.s=e)}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{15894:()=>{}},s=>{var e;e=15894,s(s.s=e)}]);
Binary file
@@ -122,7 +122,8 @@ async function connectToNxCloud(tree, schema, nxJson = (0, nx_json_1.readNxJson)
122
122
  */
123
123
  if (!schema.generateToken &&
124
124
  isGitHubDetected &&
125
- schema.installationSource === 'nx-connect')
125
+ (schema.installationSource === 'nx-connect' ||
126
+ schema.installationSource === 'nx-console'))
126
127
  return null;
127
128
  try {
128
129
  responseFromCreateNxCloudWorkspaceV2 = await createNxCloudWorkspaceV2(getRootPackageName(tree), schema.installationSource, getNxInitDate());
@@ -137,12 +137,14 @@ export declare function getTsNodeCompilerOptions(compilerOptions: CompilerOption
137
137
  strictBindCallApply?: any;
138
138
  strictNullChecks?: any;
139
139
  strictPropertyInitialization?: any;
140
+ strictBuiltinIteratorReturn?: any;
140
141
  stripInternal?: any;
141
142
  suppressExcessPropertyErrors?: any;
142
143
  suppressImplicitAnyIndexErrors?: any;
143
144
  target?: any;
144
145
  traceResolution?: any;
145
146
  useUnknownInCatchVariables?: any;
147
+ noUncheckedSideEffectImports?: any;
146
148
  resolveJsonModule?: any;
147
149
  types?: any;
148
150
  typeRoots?: any;
@@ -1 +1 @@
1
- export declare const typescriptVersion = "~5.5.2";
1
+ export declare const typescriptVersion = "~5.6.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.typescriptVersion = void 0;
4
- exports.typescriptVersion = '~5.5.2';
4
+ exports.typescriptVersion = '~5.6.2';
@@ -20,11 +20,39 @@ const update_manager_1 = require("../nx-cloud/update-manager");
20
20
  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
+ const logger_1 = require("../utils/logger");
24
+ // This function is called once during tasks runner initialization. It checks if the db cache is enabled and logs a warning if it is not.
23
25
  function dbCacheEnabled(nxJson = (0, nx_json_1.readNxJson)()) {
24
- return (!native_1.IS_WASM &&
25
- process.env.NX_DISABLE_DB !== 'true' &&
26
- nxJson.useLegacyCache !== true &&
27
- process.env.NX_DB_CACHE !== 'false');
26
+ // If the user has explicitly disabled the db cache, we can warn...
27
+ if (nxJson.useLegacyCache ||
28
+ process.env.NX_DISABLE_DB === 'true' ||
29
+ process.env.NX_DB_CACHE === 'false') {
30
+ let readMoreLink = 'https://nx.dev/deprecated/legacy-cache';
31
+ if (nxJson.tasksRunnerOptions?.default?.runner &&
32
+ !['nx-cloud', 'nx/tasks-runners/default', '@nrwl/nx-cloud'].includes(nxJson.tasksRunnerOptions.default.runner)) {
33
+ readMoreLink += '#tasksrunneroptions';
34
+ }
35
+ else if (process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === '0' ||
36
+ process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === 'false') {
37
+ readMoreLink += '#nxrejectunknownlocalcache';
38
+ }
39
+ logger_1.logger.warn(`Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at ${readMoreLink}.`);
40
+ return false;
41
+ }
42
+ // ...but if on wasm and the the db cache isnt supported we shouldn't warn
43
+ if (native_1.IS_WASM) {
44
+ return false;
45
+ }
46
+ // Below this point we are using the db cache.
47
+ if (
48
+ // The NX_REJECT_UNKNOWN_LOCAL_CACHE env var is not supported with the db cache.
49
+ // If the user has tried to use it, we can point them to powerpack as it
50
+ // provides a similar featureset.
51
+ process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === '0' ||
52
+ process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === 'false') {
53
+ logger_1.logger.warn('NX_REJECT_UNKNOWN_LOCAL_CACHE=0 is not supported with the new database cache. Read more at https://nx.dev/deprecated/legacy-cache#nxrejectunknownlocalcache.');
54
+ }
55
+ return true;
28
56
  }
29
57
  // Do not change the order of these arguments as this function is used by nx cloud
30
58
  function getCache(options) {
@@ -15,8 +15,8 @@ async function printPowerpackLicense() {
15
15
  }
16
16
  async function getPowerpackLicenseInformation() {
17
17
  try {
18
- const { getPowerpackLicenseInformation } = (await Promise.resolve().then(() => require('@nx/powerpack-license')));
19
- return getPowerpackLicenseInformation(workspace_root_1.workspaceRoot);
18
+ const { getPowerpackLicenseInformation, getPowerpackLicenseInformationAsync, } = (await Promise.resolve().then(() => require('@nx/powerpack-license')));
19
+ return (getPowerpackLicenseInformationAsync ?? getPowerpackLicenseInformation)(workspace_root_1.workspaceRoot);
20
20
  }
21
21
  catch (e) {
22
22
  if ('code' in e && e.code === 'MODULE_NOT_FOUND') {