nx 19.7.2 → 19.8.0-canary.20240910-9b3a960

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": "19.7.2",
3
+ "version": "19.8.0-canary.20240910-9b3a960",
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": {
@@ -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.2"
74
+ "@nrwl/tao": "19.8.0-canary.20240910-9b3a960"
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.2",
90
- "@nx/nx-darwin-arm64": "19.7.2",
91
- "@nx/nx-linux-x64-gnu": "19.7.2",
92
- "@nx/nx-linux-x64-musl": "19.7.2",
93
- "@nx/nx-win32-x64-msvc": "19.7.2",
94
- "@nx/nx-linux-arm64-gnu": "19.7.2",
95
- "@nx/nx-linux-arm64-musl": "19.7.2",
96
- "@nx/nx-linux-arm-gnueabihf": "19.7.2",
97
- "@nx/nx-win32-arm64-msvc": "19.7.2",
98
- "@nx/nx-freebsd-x64": "19.7.2"
89
+ "@nx/nx-darwin-x64": "19.8.0-canary.20240910-9b3a960",
90
+ "@nx/nx-darwin-arm64": "19.8.0-canary.20240910-9b3a960",
91
+ "@nx/nx-linux-x64-gnu": "19.8.0-canary.20240910-9b3a960",
92
+ "@nx/nx-linux-x64-musl": "19.8.0-canary.20240910-9b3a960",
93
+ "@nx/nx-win32-x64-msvc": "19.8.0-canary.20240910-9b3a960",
94
+ "@nx/nx-linux-arm64-gnu": "19.8.0-canary.20240910-9b3a960",
95
+ "@nx/nx-linux-arm64-musl": "19.8.0-canary.20240910-9b3a960",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.8.0-canary.20240910-9b3a960",
97
+ "@nx/nx-win32-arm64-msvc": "19.8.0-canary.20240910-9b3a960",
98
+ "@nx/nx-freebsd-x64": "19.8.0-canary.20240910-9b3a960"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
@@ -83,14 +83,12 @@ async function getGitDiff(from, to = 'HEAD') {
83
83
  else {
84
84
  range = `${from}..${to}`;
85
85
  }
86
- // Use a unique enough separator that we can be relatively certain will not occur within the commit message itself
87
- const separator = '§§§';
88
86
  // https://git-scm.com/docs/pretty-formats
89
87
  const r = await (0, exec_command_1.execCommand)('git', [
90
88
  '--no-pager',
91
89
  'log',
92
90
  range,
93
- `--pretty="----%n%s${separator}%h${separator}%an${separator}%ae%n%b"`,
91
+ '--pretty="----%n%s|%h|%an|%ae%n%b"',
94
92
  '--name-status',
95
93
  ]);
96
94
  return r
@@ -98,7 +96,7 @@ async function getGitDiff(from, to = 'HEAD') {
98
96
  .splice(1)
99
97
  .map((line) => {
100
98
  const [firstLine, ..._body] = line.split('\n');
101
- const [message, shortHash, authorName, authorEmail] = firstLine.split(separator);
99
+ const [message, shortHash, authorName, authorEmail] = firstLine.split('|');
102
100
  const r = {
103
101
  message,
104
102
  shortHash,
@@ -35,12 +35,6 @@ export interface ReleaseVersionGeneratorSchema {
35
35
  * large monorepos which have a large number of projects, especially when only a subset are released together.
36
36
  */
37
37
  logUnchangedProjects?: boolean;
38
- /**
39
- * Whether or not to keep local dependency protocols (e.g. file:, workspace:) when updating dependencies in
40
- * package.json files. This is `false` by default as not all package managers support publishing with these protocols
41
- * still present in the package.json.
42
- */
43
- preserveLocalDependencyProtocols?: boolean;
44
38
  }
45
39
  export interface NxReleaseVersionResult {
46
40
  /**
Binary file
@@ -110,7 +110,7 @@ function buildProjectConfigurationFromPackageJson(packageJson, workspaceRoot, pa
110
110
  sourceRoot: projectRoot,
111
111
  name,
112
112
  ...packageJson.nx,
113
- targets: (0, package_json_1.readTargetsFromPackageJson)(packageJson, nxJson),
113
+ targets: (0, package_json_1.readTargetsFromPackageJson)(packageJson),
114
114
  tags: (0, package_json_1.getTagsFromPackageJson)(packageJson),
115
115
  metadata: (0, package_json_1.getMetadataFromPackageJson)(packageJson),
116
116
  };
@@ -1,4 +1,3 @@
1
- import { NxJsonConfiguration } from '../config/nx-json';
2
1
  import { ProjectConfiguration, ProjectMetadata, TargetConfiguration } from '../config/workspace-json-project-json';
3
2
  import { PackageManagerCommands } from './package-manager';
4
3
  export interface NxProjectPackageJsonConfiguration extends Partial<ProjectConfiguration> {
@@ -70,7 +69,7 @@ export declare function readNxMigrateConfig(json: Partial<PackageJson>): NxMigra
70
69
  export declare function buildTargetFromScript(script: string, scripts: Record<string, string>, packageManagerCommand: PackageManagerCommands): TargetConfiguration;
71
70
  export declare function getMetadataFromPackageJson(packageJson: PackageJson): ProjectMetadata;
72
71
  export declare function getTagsFromPackageJson(packageJson: PackageJson): string[];
73
- export declare function readTargetsFromPackageJson(packageJson: PackageJson, nxJson: NxJsonConfiguration): Record<string, TargetConfiguration<any>>;
72
+ export declare function readTargetsFromPackageJson(packageJson: PackageJson): Record<string, TargetConfiguration<any>>;
74
73
  /**
75
74
  * Uses `require.resolve` to read the package.json for a module.
76
75
  *
@@ -77,7 +77,7 @@ function getTagsFromPackageJson(packageJson) {
77
77
  }
78
78
  return tags;
79
79
  }
80
- function readTargetsFromPackageJson(packageJson, nxJson) {
80
+ function readTargetsFromPackageJson(packageJson) {
81
81
  const { scripts, nx, private: isPrivate } = packageJson ?? {};
82
82
  const res = {};
83
83
  const includedScripts = nx?.includedScripts || Object.keys(scripts ?? {});
@@ -92,23 +92,12 @@ function readTargetsFromPackageJson(packageJson, nxJson) {
92
92
  * Add implicit nx-release-publish target for all package.json files that are
93
93
  * not marked as `"private": true` to allow for lightweight configuration for
94
94
  * package based repos.
95
- *
96
- * Any targetDefaults for the nx-release-publish target set by the user should
97
- * be merged with the implicit target.
98
95
  */
99
96
  if (!isPrivate && !res['nx-release-publish']) {
100
- const nxReleasePublishTargetDefaults = nxJson?.targetDefaults?.['nx-release-publish'] ?? {};
101
97
  res['nx-release-publish'] = {
98
+ dependsOn: ['^nx-release-publish'],
102
99
  executor: '@nx/js:release-publish',
103
- ...nxReleasePublishTargetDefaults,
104
- dependsOn: [
105
- // For maximum correctness, projects should only ever be published once their dependencies are successfully published
106
- '^nx-release-publish',
107
- ...(nxReleasePublishTargetDefaults.dependsOn ?? []),
108
- ],
109
- options: {
110
- ...(nxReleasePublishTargetDefaults.options ?? {}),
111
- },
100
+ options: {},
112
101
  };
113
102
  }
114
103
  return res;