@nx/angular 19.6.0-canary.20240725-3890edc → 19.6.0-canary.20240727-efa59fa
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +16 -0
- package/package.json +8 -9
- package/src/generators/utils/storybook-ast/component-info.js +4 -2
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +1 -1
- package/src/generators/utils/storybook-ast/tree-utilities.d.ts +0 -2
- package/src/generators/utils/storybook-ast/tree-utilities.js +0 -31
package/migrations.json
CHANGED
@@ -2012,6 +2012,22 @@
|
|
2012
2012
|
"alwaysAddToPackageJson": false
|
2013
2013
|
}
|
2014
2014
|
}
|
2015
|
+
},
|
2016
|
+
"19.5.4-ngrx": {
|
2017
|
+
"version": "19.5.4-beta.0",
|
2018
|
+
"requires": {
|
2019
|
+
"@angular/core": "^18.0.0"
|
2020
|
+
},
|
2021
|
+
"packages": {
|
2022
|
+
"@ngrx/store": {
|
2023
|
+
"version": "^18.0.1",
|
2024
|
+
"alwaysAddToPackageJson": false
|
2025
|
+
},
|
2026
|
+
"@ngrx/operators": {
|
2027
|
+
"version": "^18.0.1",
|
2028
|
+
"alwaysAddToPackageJson": false
|
2029
|
+
}
|
2030
|
+
}
|
2015
2031
|
}
|
2016
2032
|
}
|
2017
2033
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.6.0-canary.
|
3
|
+
"version": "19.6.0-canary.20240727-efa59fa",
|
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": {
|
@@ -72,7 +72,6 @@
|
|
72
72
|
"@typescript-eslint/type-utils": "^7.16.0",
|
73
73
|
"chalk": "^4.1.0",
|
74
74
|
"find-cache-dir": "^3.3.2",
|
75
|
-
"ignore": "^5.0.4",
|
76
75
|
"magic-string": "~0.30.2",
|
77
76
|
"minimatch": "9.0.3",
|
78
77
|
"semver": "^7.5.3",
|
@@ -80,14 +79,14 @@
|
|
80
79
|
"webpack-merge": "^5.8.0",
|
81
80
|
"webpack": "^5.88.0",
|
82
81
|
"@module-federation/enhanced": "~0.2.3",
|
83
|
-
"@nx/devkit": "19.6.0-canary.
|
84
|
-
"@nx/js": "19.6.0-canary.
|
85
|
-
"@nx/eslint": "19.6.0-canary.
|
86
|
-
"@nx/webpack": "19.6.0-canary.
|
87
|
-
"@nx/web": "19.6.0-canary.
|
88
|
-
"@nx/workspace": "19.6.0-canary.
|
82
|
+
"@nx/devkit": "19.6.0-canary.20240727-efa59fa",
|
83
|
+
"@nx/js": "19.6.0-canary.20240727-efa59fa",
|
84
|
+
"@nx/eslint": "19.6.0-canary.20240727-efa59fa",
|
85
|
+
"@nx/webpack": "19.6.0-canary.20240727-efa59fa",
|
86
|
+
"@nx/web": "19.6.0-canary.20240727-efa59fa",
|
87
|
+
"@nx/workspace": "19.6.0-canary.20240727-efa59fa",
|
89
88
|
"piscina": "^4.4.0",
|
90
|
-
"@nrwl/angular": "19.6.0-canary.
|
89
|
+
"@nrwl/angular": "19.6.0-canary.20240727-efa59fa"
|
91
90
|
},
|
92
91
|
"peerDependencies": {
|
93
92
|
"@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
|
@@ -7,7 +7,6 @@ const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescri
|
|
7
7
|
const path_1 = require("path");
|
8
8
|
const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
|
9
9
|
const module_info_1 = require("./module-info");
|
10
|
-
const tree_utilities_1 = require("./tree-utilities");
|
11
10
|
let tsModule;
|
12
11
|
let tsquery;
|
13
12
|
function getComponentsInfo(tree, entryPoint, moduleFilePaths, projectName) {
|
@@ -133,7 +132,10 @@ function getComponentInfo(tree, entryPoint, sourceFile, imports, moduleFilePath,
|
|
133
132
|
function getComponentInfoFromDir(tree, entryPoint, dir, componentName, moduleFolderPath) {
|
134
133
|
let path = null;
|
135
134
|
let componentFileName = null;
|
136
|
-
const componentImportPathChildren =
|
135
|
+
const componentImportPathChildren = [];
|
136
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, dir, (filePath) => {
|
137
|
+
componentImportPathChildren.push(filePath);
|
138
|
+
});
|
137
139
|
for (const candidateFile of componentImportPathChildren) {
|
138
140
|
if (candidateFile.endsWith('.ts')) {
|
139
141
|
const content = tree.read(candidateFile, 'utf-8');
|
package/src/utils/versions.d.ts
CHANGED
@@ -2,7 +2,7 @@ export declare const nxVersion: any;
|
|
2
2
|
export declare const angularVersion = "~18.1.0";
|
3
3
|
export declare const angularDevkitVersion = "~18.1.0";
|
4
4
|
export declare const ngPackagrVersion = "~18.1.0";
|
5
|
-
export declare const ngrxVersion = "^18.0.
|
5
|
+
export declare const ngrxVersion = "^18.0.1";
|
6
6
|
export declare const rxjsVersion = "~7.8.0";
|
7
7
|
export declare const zoneJsVersion = "~0.14.3";
|
8
8
|
export declare const angularJsVersion = "1.7.9";
|
package/src/utils/versions.js
CHANGED
@@ -5,7 +5,7 @@ exports.nxVersion = require('../../package.json').version;
|
|
5
5
|
exports.angularVersion = '~18.1.0';
|
6
6
|
exports.angularDevkitVersion = '~18.1.0';
|
7
7
|
exports.ngPackagrVersion = '~18.1.0';
|
8
|
-
exports.ngrxVersion = '^18.0.
|
8
|
+
exports.ngrxVersion = '^18.0.1';
|
9
9
|
exports.rxjsVersion = '~7.8.0';
|
10
10
|
exports.zoneJsVersion = '~0.14.3';
|
11
11
|
exports.angularJsVersion = '1.7.9';
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getAllFilesRecursivelyFromDir = getAllFilesRecursivelyFromDir;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const devkit_1 = require("@nx/devkit");
|
6
|
-
const ignore_1 = tslib_1.__importDefault(require("ignore"));
|
7
|
-
function getAllFilesRecursivelyFromDir(tree, dir) {
|
8
|
-
if (isPathIgnored(tree, dir)) {
|
9
|
-
return [];
|
10
|
-
}
|
11
|
-
const files = [];
|
12
|
-
const children = tree.children(dir);
|
13
|
-
children.forEach((child) => {
|
14
|
-
const childPath = (0, devkit_1.joinPathFragments)(dir, child);
|
15
|
-
if (tree.isFile(childPath)) {
|
16
|
-
files.push(childPath);
|
17
|
-
}
|
18
|
-
else {
|
19
|
-
files.push(...getAllFilesRecursivelyFromDir(tree, childPath));
|
20
|
-
}
|
21
|
-
});
|
22
|
-
return files;
|
23
|
-
}
|
24
|
-
function isPathIgnored(tree, path) {
|
25
|
-
let ig;
|
26
|
-
if (tree.exists('.gitignore')) {
|
27
|
-
ig = (0, ignore_1.default)();
|
28
|
-
ig.add(tree.read('.gitignore', 'utf-8'));
|
29
|
-
}
|
30
|
-
return path !== '' && ig?.ignores(path);
|
31
|
-
}
|