nx 20.4.4 → 20.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "20.4.4",
3
+ "version": "20.4.5",
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.4.4",
86
- "@nx/nx-darwin-x64": "20.4.4",
87
- "@nx/nx-freebsd-x64": "20.4.4",
88
- "@nx/nx-linux-arm-gnueabihf": "20.4.4",
89
- "@nx/nx-linux-arm64-gnu": "20.4.4",
90
- "@nx/nx-linux-arm64-musl": "20.4.4",
91
- "@nx/nx-linux-x64-gnu": "20.4.4",
92
- "@nx/nx-linux-x64-musl": "20.4.4",
93
- "@nx/nx-win32-arm64-msvc": "20.4.4",
94
- "@nx/nx-win32-x64-msvc": "20.4.4"
85
+ "@nx/nx-darwin-arm64": "20.4.5",
86
+ "@nx/nx-darwin-x64": "20.4.5",
87
+ "@nx/nx-freebsd-x64": "20.4.5",
88
+ "@nx/nx-linux-arm-gnueabihf": "20.4.5",
89
+ "@nx/nx-linux-arm64-gnu": "20.4.5",
90
+ "@nx/nx-linux-arm64-musl": "20.4.5",
91
+ "@nx/nx-linux-x64-gnu": "20.4.5",
92
+ "@nx/nx-linux-x64-musl": "20.4.5",
93
+ "@nx/nx-win32-arm64-msvc": "20.4.5",
94
+ "@nx/nx-win32-x64-msvc": "20.4.5"
95
95
  },
96
96
  "nx-migrations": {
97
97
  "migrations": "./migrations.json",
@@ -21,6 +21,10 @@
21
21
  "additionalProperties": false,
22
22
  "deprecated": "Use `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 20."
23
23
  },
24
+ "extends": {
25
+ "type": "string",
26
+ "description": "Specifies the base config to extend."
27
+ },
24
28
  "defaultBase": {
25
29
  "type": "string",
26
30
  "description": "Default --base used by affected logic."
@@ -58,6 +58,7 @@ export type PlanCheckOptions = BaseNxReleaseArgs & {
58
58
  export type ReleaseOptions = NxReleaseArgs & FirstReleaseArgs & {
59
59
  specifier?: string;
60
60
  yes?: boolean;
61
+ preid?: VersionOptions['preid'];
61
62
  skipPublish?: boolean;
62
63
  };
63
64
  export type VersionPlanArgs = {
@@ -75,6 +75,11 @@ const releaseCommand = {
75
75
  .positional('specifier', {
76
76
  type: 'string',
77
77
  describe: 'Exact version or semver keyword to apply to the selected release group.',
78
+ })
79
+ .option('preid', {
80
+ type: 'string',
81
+ describe: 'The optional prerelease identifier to apply to the version. This will only be applied in the case that the specifier argument has been set to `prerelease` OR when conventional commits are enabled, in which case it will modify the resolved specifier from conventional commits to be its prerelease equivalent. E.g. minor -> preminor.',
82
+ default: '',
78
83
  })
79
84
  .option('yes', {
80
85
  type: 'boolean',
@@ -172,7 +172,7 @@ export declare export function getFilesForOutputs(directory: string, entries: Ar
172
172
 
173
173
  export declare export function getTransformableOutputs(outputs: Array<string>): Array<string>
174
174
 
175
- export declare export function hashArray(input: Array<string>): string
175
+ export declare export function hashArray(input: Array<string | undefined | null>): string
176
176
 
177
177
  export interface HashDetails {
178
178
  value: string
@@ -88,13 +88,13 @@ function __napi_rs_initialize_modules(__napiInstance) {
88
88
  __napiInstance.exports['__napi_register__FileLock_struct_39']?.()
89
89
  __napiInstance.exports['__napi_register__FileLock_impl_41']?.()
90
90
  __napiInstance.exports['__napi_register__WorkspaceContext_struct_42']?.()
91
- __napiInstance.exports['__napi_register__WorkspaceContext_impl_51']?.()
92
- __napiInstance.exports['__napi_register__WorkspaceErrors_52']?.()
93
- __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_53']?.()
94
- __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_54']?.()
95
- __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_55']?.()
96
- __napiInstance.exports['__napi_register__FileMap_struct_56']?.()
97
- __napiInstance.exports['__napi_register____test_only_transfer_file_map_57']?.()
91
+ __napiInstance.exports['__napi_register__WorkspaceContext_impl_52']?.()
92
+ __napiInstance.exports['__napi_register__WorkspaceErrors_53']?.()
93
+ __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_54']?.()
94
+ __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_55']?.()
95
+ __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_56']?.()
96
+ __napiInstance.exports['__napi_register__FileMap_struct_57']?.()
97
+ __napiInstance.exports['__napi_register____test_only_transfer_file_map_58']?.()
98
98
  }
99
99
  export const FileLock = __napiModule.exports.FileLock
100
100
  export const HashPlanner = __napiModule.exports.HashPlanner
Binary file
@@ -23,11 +23,11 @@ function readTsConfigOptions(tsConfigPath) {
23
23
  tsModule = require('typescript');
24
24
  }
25
25
  const readResult = tsModule.readConfigFile(tsConfigPath, tsModule.sys.readFile);
26
- // we don't need to scan the files, we only care about options
26
+ // We only care about options, so we don't need to scan source files, and thus
27
+ // `readDirectory` is stubbed for performance.
27
28
  const host = {
29
+ ...tsModule.sys,
28
30
  readDirectory: () => [],
29
- readFile: () => '',
30
- fileExists: tsModule.sys.fileExists,
31
31
  };
32
32
  return tsModule.parseJsonConfigFileContent(readResult.config, host, (0, path_1.dirname)(tsConfigPath)).options;
33
33
  }
@@ -182,12 +182,14 @@ const server = (0, net_1.createServer)((socket) => {
182
182
  });
183
183
  });
184
184
  server.listen(socketPath);
185
- setTimeout(() => {
186
- if (!connected) {
187
- console.error('The plugin worker is exiting as it was not connected to within 5 seconds.');
188
- process.exit(1);
189
- }
190
- }, 5000).unref();
185
+ if (process.env.NX_PLUGIN_NO_TIMEOUTS !== 'true') {
186
+ setTimeout(() => {
187
+ if (!connected) {
188
+ console.error('The plugin worker is exiting as it was not connected to within 5 seconds.');
189
+ process.exit(1);
190
+ }
191
+ }, 5000).unref();
192
+ }
191
193
  const exitHandler = (exitCode) => () => {
192
194
  server.close();
193
195
  try {