@nx/angular 20.1.2 → 20.1.3

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": "20.1.2",
3
+ "version": "20.1.3",
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": {
@@ -80,12 +80,12 @@
80
80
  "webpack-merge": "^5.8.0",
81
81
  "webpack": "^5.88.0",
82
82
  "@module-federation/enhanced": "0.6.9",
83
- "@nx/devkit": "20.1.2",
84
- "@nx/js": "20.1.2",
85
- "@nx/eslint": "20.1.2",
86
- "@nx/webpack": "20.1.2",
87
- "@nx/web": "20.1.2",
88
- "@nx/workspace": "20.1.2",
83
+ "@nx/devkit": "20.1.3",
84
+ "@nx/js": "20.1.3",
85
+ "@nx/eslint": "20.1.3",
86
+ "@nx/webpack": "20.1.3",
87
+ "@nx/web": "20.1.3",
88
+ "@nx/workspace": "20.1.3",
89
89
  "piscina": "^4.4.0"
90
90
  },
91
91
  "peerDependencies": {
@@ -10,7 +10,9 @@ function replaceModuleUsagesWithComponent(tree, moduleName, componentName) {
10
10
  }
11
11
  const fileContents = tree.read(path, 'utf-8');
12
12
  if (fileContents.includes(moduleName)) {
13
- const moduleNameRegex = new RegExp(moduleName, 'g');
13
+ // Word boundary \b ensures that other modules won't be affected.
14
+ // E.g. "MapIconModule" would not be affected when "IconModule" is being migrated.
15
+ const moduleNameRegex = new RegExp(`\\b${moduleName}\\b`, 'g');
14
16
  const newFileContents = fileContents.replace(moduleNameRegex, componentName);
15
17
  tree.write(path, newFileContents);
16
18
  }