@nx/devkit 22.0.0-beta.0 → 22.0.0-canary.20251001-e28a97a
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/devkit",
|
3
|
-
"version": "22.0.0-
|
3
|
+
"version": "22.0.0-canary.20251001-e28a97a",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by leveraging the Nx Devkit](https://nx.dev/extending-nx/intro/getting-started) on our docs.",
|
6
6
|
"repository": {
|
@@ -29,7 +29,6 @@
|
|
29
29
|
"homepage": "https://nx.dev",
|
30
30
|
"dependencies": {
|
31
31
|
"ejs": "^3.1.7",
|
32
|
-
"ignore": "^5.0.4",
|
33
32
|
"tslib": "^2.3.0",
|
34
33
|
"semver": "^7.5.3",
|
35
34
|
"yargs-parser": "21.1.1",
|
@@ -38,7 +37,7 @@
|
|
38
37
|
},
|
39
38
|
"devDependencies": {
|
40
39
|
"jest": "^29.4.1",
|
41
|
-
"nx": "22.0.0-
|
40
|
+
"nx": "22.0.0-canary.20251001-e28a97a"
|
42
41
|
},
|
43
42
|
"peerDependencies": {
|
44
43
|
"nx": ">= 21 <= 23"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"format-files.d.ts","sourceRoot":"","sources":["../../../../../packages/devkit/src/generators/format-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,IAAI,EAAa,MAAM,uBAAuB,CAAC;AAQlE;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,IAAI,EACV,OAAO,GAAE;IACP,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC5B,GACL,OAAO,CAAC,IAAI,CAAC,
|
1
|
+
{"version":3,"file":"format-files.d.ts","sourceRoot":"","sources":["../../../../../packages/devkit/src/generators/format-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,IAAI,EAAa,MAAM,uBAAuB,CAAC;AAQlE;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,IAAI,EACV,OAAO,GAAE;IACP,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAC5B,GACL,OAAO,CAAC,IAAI,CAAC,CAgEf"}
|
@@ -22,12 +22,8 @@ async function formatFiles(tree, options = {}) {
|
|
22
22
|
}
|
23
23
|
}
|
24
24
|
catch { }
|
25
|
-
/**
|
26
|
-
* TODO(v22): Stop sorting tsconfig paths by default, paths are now less common/important
|
27
|
-
* in Nx workspace setups, and the sorting causes comments to be lost.
|
28
|
-
*/
|
29
25
|
options.sortRootTsconfigPaths ??=
|
30
|
-
process.env.NX_FORMAT_SORT_TSCONFIG_PATHS
|
26
|
+
process.env.NX_FORMAT_SORT_TSCONFIG_PATHS === 'true';
|
31
27
|
if (options.sortRootTsconfigPaths) {
|
32
28
|
sortTsConfig(tree);
|
33
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"visit-not-ignored-files.d.ts","sourceRoot":"","sources":["../../../../../packages/devkit/src/generators/visit-not-ignored-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAIlD;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAkB,EAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC9B,IAAI,
|
1
|
+
{"version":3,"file":"visit-not-ignored-files.d.ts","sourceRoot":"","sources":["../../../../../packages/devkit/src/generators/visit-not-ignored-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAIlD;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAkB,EAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC9B,IAAI,CAiBN"}
|
@@ -1,23 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
4
|
-
const
|
4
|
+
const devkit_internals_1 = require("nx/src/devkit-internals");
|
5
5
|
const path_1 = require("path");
|
6
6
|
/**
|
7
7
|
* Utility to act on all files in a tree that are not ignored by git.
|
8
8
|
*/
|
9
9
|
function visitNotIgnoredFiles(tree, dirPath = tree.root, visitor) {
|
10
|
-
|
11
|
-
let ig;
|
12
|
-
if (tree.exists('.gitignore')) {
|
13
|
-
ig = (0, ignore_1.default)();
|
14
|
-
ig.add('.git');
|
15
|
-
ig.add(tree.read('.gitignore', 'utf-8'));
|
16
|
-
}
|
17
|
-
if (tree.exists('.nxignore')) {
|
18
|
-
ig ??= (0, ignore_1.default)();
|
19
|
-
ig.add(tree.read('.nxignore', 'utf-8'));
|
20
|
-
}
|
10
|
+
const ig = (0, devkit_internals_1.getIgnoreObjectForTree)(tree);
|
21
11
|
dirPath = normalizePathRelativeToRoot(dirPath, tree.root);
|
22
12
|
if (dirPath !== '' && ig?.ignores(dirPath)) {
|
23
13
|
return;
|