nx 21.4.0-canary.20250722-5163bcd → 21.4.0-canary.20250724-b7c1c0e

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": "21.4.0-canary.20250722-5163bcd",
3
+ "version": "21.4.0-canary.20250724-b7c1c0e",
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": {
@@ -83,16 +83,16 @@
83
83
  }
84
84
  },
85
85
  "optionalDependencies": {
86
- "@nx/nx-darwin-arm64": "21.4.0-canary.20250722-5163bcd",
87
- "@nx/nx-darwin-x64": "21.4.0-canary.20250722-5163bcd",
88
- "@nx/nx-freebsd-x64": "21.4.0-canary.20250722-5163bcd",
89
- "@nx/nx-linux-arm-gnueabihf": "21.4.0-canary.20250722-5163bcd",
90
- "@nx/nx-linux-arm64-gnu": "21.4.0-canary.20250722-5163bcd",
91
- "@nx/nx-linux-arm64-musl": "21.4.0-canary.20250722-5163bcd",
92
- "@nx/nx-linux-x64-gnu": "21.4.0-canary.20250722-5163bcd",
93
- "@nx/nx-linux-x64-musl": "21.4.0-canary.20250722-5163bcd",
94
- "@nx/nx-win32-arm64-msvc": "21.4.0-canary.20250722-5163bcd",
95
- "@nx/nx-win32-x64-msvc": "21.4.0-canary.20250722-5163bcd"
86
+ "@nx/nx-darwin-arm64": "21.4.0-canary.20250724-b7c1c0e",
87
+ "@nx/nx-darwin-x64": "21.4.0-canary.20250724-b7c1c0e",
88
+ "@nx/nx-freebsd-x64": "21.4.0-canary.20250724-b7c1c0e",
89
+ "@nx/nx-linux-arm-gnueabihf": "21.4.0-canary.20250724-b7c1c0e",
90
+ "@nx/nx-linux-arm64-gnu": "21.4.0-canary.20250724-b7c1c0e",
91
+ "@nx/nx-linux-arm64-musl": "21.4.0-canary.20250724-b7c1c0e",
92
+ "@nx/nx-linux-x64-gnu": "21.4.0-canary.20250724-b7c1c0e",
93
+ "@nx/nx-linux-x64-musl": "21.4.0-canary.20250724-b7c1c0e",
94
+ "@nx/nx-win32-arm64-msvc": "21.4.0-canary.20250724-b7c1c0e",
95
+ "@nx/nx-win32-x64-msvc": "21.4.0-canary.20250724-b7c1c0e"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -1 +1 @@
1
- {"version":3,"file":"init-v2.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/init/init-v2.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,sBAAsB,CAAC;AA4BvE,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAkJlE;AA2BD,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,OAAO,EACpB,iBAAiB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC,CAgID"}
1
+ {"version":3,"file":"init-v2.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/init/init-v2.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,sBAAsB,CAAC;AA4BvE,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAiJlE;AA2BD,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,OAAO,EACpB,iBAAiB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC,CAgID"}
@@ -131,12 +131,11 @@ async function initHandler(options) {
131
131
  await (0, utils_1.initCloud)('nx-init');
132
132
  }
133
133
  (0, utils_1.printFinalMessage)({
134
- learnMoreLink: _isMonorepo
135
- ? 'https://nx.dev/recipes/adopting-nx/adding-to-monorepo'
136
- : 'https://nx.dev/getting-started/adding-to-existing',
134
+ learnMoreLink: 'https://nx.dev/getting-started/adding-to-existing',
137
135
  appendLines: _isMonorepo
138
136
  ? [
139
- `- Learn how Nx helps manage your TypeScript monorepo at https://nx.dev/features/maintain-ts-monorepos.`,
137
+ `- Read a detailed guide about adding Nx to NPM/YARN/PNPM workspaces: https://nx.dev/recipes/adopting-nx/adding-to-monorepos`,
138
+ `- Learn how Nx helps manage your TypeScript monorepo: https://nx.dev/features/maintain-ts-monorepos`,
140
139
  ]
141
140
  : [],
142
141
  });
Binary file
@@ -260,7 +260,7 @@ function stringifyNpmLockfile(graph, rootLockFileContent, packageJson) {
260
260
  }
261
261
  function mapWorkspaceModules(packageJson, rootLockFile, workspaceModules) {
262
262
  const output = {};
263
- for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies)) {
263
+ for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies ?? {})) {
264
264
  if (workspaceModules.has(pkgName)) {
265
265
  let workspaceModuleDefinition;
266
266
  for (const [depName, depSnapshot] of Object.entries(rootLockFile.packages || rootLockFile.dependencies)) {
@@ -293,7 +293,7 @@ function mapV3Snapshots(mappedPackages, packageJson) {
293
293
  return output;
294
294
  }
295
295
  function mapPackageJsonWithWorkspaceModules(packageJson) {
296
- for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies)) {
296
+ for (const [pkgName, pkgVersion] of Object.entries(packageJson.dependencies ?? {})) {
297
297
  if (pkgVersion.startsWith('workspace:') || pkgVersion.startsWith('file:')) {
298
298
  packageJson.dependencies[pkgName] = `workspace_modules/${pkgName}`;
299
299
  }