@nx/angular 22.6.4 → 22.6.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/angular",
3
- "version": "22.6.4",
3
+ "version": "22.6.5",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -62,14 +62,14 @@
62
62
  "migrations": "./migrations.json"
63
63
  },
64
64
  "dependencies": {
65
- "@nx/devkit": "22.6.4",
66
- "@nx/eslint": "22.6.4",
67
- "@nx/js": "22.6.4",
68
- "@nx/module-federation": "22.6.4",
69
- "@nx/rspack": "22.6.4",
70
- "@nx/web": "22.6.4",
71
- "@nx/webpack": "22.6.4",
72
- "@nx/workspace": "22.6.4",
65
+ "@nx/devkit": "22.6.5",
66
+ "@nx/eslint": "22.6.5",
67
+ "@nx/js": "22.6.5",
68
+ "@nx/module-federation": "22.6.5",
69
+ "@nx/rspack": "22.6.5",
70
+ "@nx/web": "22.6.5",
71
+ "@nx/webpack": "22.6.5",
72
+ "@nx/workspace": "22.6.5",
73
73
  "@phenomnomnominal/tsquery": "~6.1.4",
74
74
  "@typescript-eslint/type-utils": "^8.0.0",
75
75
  "enquirer": "~2.3.6",
package/project.json CHANGED
@@ -71,5 +71,5 @@
71
71
  "command": "node ./scripts/copy-readme.js angular"
72
72
  }
73
73
  },
74
- "implicitDependencies": ["vite"]
74
+ "implicitDependencies": ["vite", "storybook", "playwright"]
75
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;CACtD,CAAC;AAkDF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAqB7D,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAQnB,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;CACtD,CAAC;AAgDF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAwB7D,CAAC"}
@@ -46,7 +46,6 @@ const knownExecutors = {
46
46
  '@angular/build:unit-test',
47
47
  ]),
48
48
  };
49
- const pmc = (0, devkit_1.getPackageManagerCommand)();
50
49
  function readProjectsCache(cachePath) {
51
50
  return (0, node_fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
52
51
  }
@@ -59,15 +58,16 @@ exports.createNodesV2 = [
59
58
  const optionsHash = (0, devkit_internals_1.hashObject)(options);
60
59
  const cachePath = (0, node_path_1.join)(cache_directory_1.workspaceDataDirectory, `angular-${optionsHash}.hash`);
61
60
  const projectsCache = readProjectsCache(cachePath);
61
+ const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
62
62
  try {
63
- return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, projectsCache), configFiles, options, context);
63
+ return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, projectsCache, pmc), configFiles, options, context);
64
64
  }
65
65
  finally {
66
66
  writeProjectsToCache(cachePath, projectsCache);
67
67
  }
68
68
  },
69
69
  ];
70
- async function createNodesInternal(configFilePath, options, context, projectsCache) {
70
+ async function createNodesInternal(configFilePath, options, context, projectsCache, pmc) {
71
71
  const angularWorkspaceRoot = (0, node_path_1.dirname)(configFilePath);
72
72
  // Do not create a project if package.json isn't there
73
73
  const siblingFiles = (0, node_fs_1.readdirSync)((0, node_path_1.join)(context.workspaceRoot, angularWorkspaceRoot));
@@ -75,10 +75,10 @@ async function createNodesInternal(configFilePath, options, context, projectsCac
75
75
  return {};
76
76
  }
77
77
  const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(angularWorkspaceRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
78
- projectsCache[hash] ??= await buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context);
78
+ projectsCache[hash] ??= await buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context, pmc);
79
79
  return { projects: projectsCache[hash] };
80
80
  }
81
- async function buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context) {
81
+ async function buildAngularProjects(configFilePath, options, angularWorkspaceRoot, context, pmc) {
82
82
  const projects = {};
83
83
  const absoluteConfigFilePath = (0, node_path_1.join)(context.workspaceRoot, configFilePath);
84
84
  const angularJson = (0, devkit_1.readJsonFile)(absoluteConfigFilePath);