nx 19.7.0-canary.20240827-61ecd4b → 19.7.0-canary.20240829-0ef6892

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.7.0-canary.20240827-61ecd4b",
3
+ "version": "19.7.0-canary.20240829-0ef6892",
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": {
@@ -56,7 +56,7 @@
56
56
  "ignore": "^5.0.4",
57
57
  "jest-diff": "^29.4.1",
58
58
  "jsonc-parser": "3.2.0",
59
- "lines-and-columns": "~2.0.3",
59
+ "lines-and-columns": "2.0.3",
60
60
  "minimatch": "9.0.3",
61
61
  "npm-run-path": "^4.0.1",
62
62
  "open": "^8.4.0",
@@ -71,7 +71,7 @@
71
71
  "yargs-parser": "21.1.1",
72
72
  "node-machine-id": "1.1.12",
73
73
  "ora": "5.3.0",
74
- "@nrwl/tao": "19.7.0-canary.20240827-61ecd4b"
74
+ "@nrwl/tao": "19.7.0-canary.20240829-0ef6892"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@swc-node/register": "^1.8.0",
@@ -86,16 +86,16 @@
86
86
  }
87
87
  },
88
88
  "optionalDependencies": {
89
- "@nx/nx-darwin-x64": "19.7.0-canary.20240827-61ecd4b",
90
- "@nx/nx-darwin-arm64": "19.7.0-canary.20240827-61ecd4b",
91
- "@nx/nx-linux-x64-gnu": "19.7.0-canary.20240827-61ecd4b",
92
- "@nx/nx-linux-x64-musl": "19.7.0-canary.20240827-61ecd4b",
93
- "@nx/nx-win32-x64-msvc": "19.7.0-canary.20240827-61ecd4b",
94
- "@nx/nx-linux-arm64-gnu": "19.7.0-canary.20240827-61ecd4b",
95
- "@nx/nx-linux-arm64-musl": "19.7.0-canary.20240827-61ecd4b",
96
- "@nx/nx-linux-arm-gnueabihf": "19.7.0-canary.20240827-61ecd4b",
97
- "@nx/nx-win32-arm64-msvc": "19.7.0-canary.20240827-61ecd4b",
98
- "@nx/nx-freebsd-x64": "19.7.0-canary.20240827-61ecd4b"
89
+ "@nx/nx-darwin-x64": "19.7.0-canary.20240829-0ef6892",
90
+ "@nx/nx-darwin-arm64": "19.7.0-canary.20240829-0ef6892",
91
+ "@nx/nx-linux-x64-gnu": "19.7.0-canary.20240829-0ef6892",
92
+ "@nx/nx-linux-x64-musl": "19.7.0-canary.20240829-0ef6892",
93
+ "@nx/nx-win32-x64-msvc": "19.7.0-canary.20240829-0ef6892",
94
+ "@nx/nx-linux-arm64-gnu": "19.7.0-canary.20240829-0ef6892",
95
+ "@nx/nx-linux-arm64-musl": "19.7.0-canary.20240829-0ef6892",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.7.0-canary.20240829-0ef6892",
97
+ "@nx/nx-win32-arm64-msvc": "19.7.0-canary.20240829-0ef6892",
98
+ "@nx/nx-freebsd-x64": "19.7.0-canary.20240829-0ef6892"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
@@ -282,6 +282,13 @@
282
282
  "applyChanges": {
283
283
  "type": "boolean",
284
284
  "description": "Whether to automatically apply sync generator changes when running tasks. If not set, the user will be prompted. If set to `true`, the user will not be prompted and the changes will be applied. If set to `false`, the user will not be prompted and the changes will not be applied."
285
+ },
286
+ "disabledTaskSyncGenerators": {
287
+ "type": "array",
288
+ "items": {
289
+ "type": "string"
290
+ },
291
+ "description": "List of registered task sync generators to disable."
285
292
  }
286
293
  },
287
294
  "additionalProperties": false
@@ -10,19 +10,21 @@ export declare class ReleaseClient {
10
10
  release: (args: import("./command-object").ReleaseOptions) => Promise<import("./version").NxReleaseVersionResult | number>;
11
11
  constructor(overrideReleaseConfig: NxReleaseConfiguration);
12
12
  }
13
+ declare const defaultClient: ReleaseClient;
13
14
  /**
14
15
  * @public
15
16
  */
16
- export declare const releaseChangelog: any;
17
+ export declare const releaseChangelog: typeof defaultClient.releaseChangelog;
17
18
  /**
18
19
  * @public
19
20
  */
20
- export declare const releasePublish: any;
21
+ export declare const releasePublish: typeof defaultClient.releasePublish;
21
22
  /**
22
23
  * @public
23
24
  */
24
- export declare const releaseVersion: any;
25
+ export declare const releaseVersion: typeof defaultClient.releaseVersion;
25
26
  /**
26
27
  * @public
27
28
  */
28
- export declare const release: any;
29
+ export declare const release: typeof defaultClient.release;
30
+ export {};
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.syncHandler = syncHandler;
4
4
  const ora = require("ora");
5
+ const nx_json_1 = require("../../config/nx-json");
5
6
  const project_graph_1 = require("../../project-graph/project-graph");
6
7
  const output_1 = require("../../utils/output");
7
8
  const params_1 = require("../../utils/params");
@@ -10,7 +11,17 @@ const chalk = require("chalk");
10
11
  function syncHandler(options) {
11
12
  return (0, params_1.handleErrors)(options.verbose, async () => {
12
13
  const projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
13
- const syncGenerators = await (0, sync_generators_1.collectAllRegisteredSyncGenerators)(projectGraph);
14
+ const nxJson = (0, nx_json_1.readNxJson)();
15
+ const syncGenerators = await (0, sync_generators_1.collectAllRegisteredSyncGenerators)(projectGraph, nxJson);
16
+ if (!syncGenerators.length) {
17
+ output_1.output.success({
18
+ title: options.check
19
+ ? 'The workspace is up to date'
20
+ : 'The workspace is already up to date',
21
+ bodyLines: ['There are no sync generators to run.'],
22
+ });
23
+ return 0;
24
+ }
14
25
  const results = await (0, sync_generators_1.getSyncGeneratorChanges)(syncGenerators);
15
26
  if (!results.length) {
16
27
  output_1.output.success({
@@ -286,11 +286,15 @@ export interface NxSyncConfiguration {
286
286
  };
287
287
  /**
288
288
  * Whether to automatically apply sync generator changes when running tasks.
289
- * If not set, the user will be prompted.
289
+ * If not set, the user will be prompted in interactive mode.
290
290
  * If set to `true`, the user will not be prompted and the changes will be applied.
291
291
  * If set to `false`, the user will not be prompted and the changes will not be applied.
292
292
  */
293
293
  applyChanges?: boolean;
294
+ /**
295
+ * List of registered task sync generators to disable.
296
+ */
297
+ disabledTaskSyncGenerators?: string[];
294
298
  }
295
299
  /**
296
300
  * Nx.json configuration