@nx/dotnet 23.0.0-beta.23 → 23.0.0-beta.25
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/README.md +0 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/lib/MsbuildAnalyzer.dll +0 -0
- package/dist/lib/MsbuildAnalyzer.pdb +0 -0
- package/dist/migrations/update-23-0-0/update-plugin-path.d.ts +9 -0
- package/dist/migrations/update-23-0-0/update-plugin-path.d.ts.map +1 -0
- package/dist/migrations/update-23-0-0/update-plugin-path.js +35 -0
- package/dist/plugins/plugin.d.ts +4 -4
- package/dist/plugins/plugin.d.ts.map +1 -1
- package/dist/plugins/plugin.js +12 -11
- package/dist/readme-template.md +0 -2
- package/migrations.json +8 -1
- package/package.json +9 -11
- package/dist/plugin.d.ts +0 -2
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plugin.js +0 -7
package/README.md
CHANGED
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
<hr>
|
|
22
22
|
|
|
23
|
-
> Note: The `@nx/dotnet` plugin is currently experimental. Features and APIs may change.
|
|
24
|
-
|
|
25
23
|
# Nx: Smart Monorepos · Fast Builds
|
|
26
24
|
|
|
27
25
|
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
exports.createDependencies = exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
|
+
var plugin_1 = require("./plugins/plugin");
|
|
5
|
+
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
|
|
6
|
+
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_1.createNodesV2; } });
|
|
7
|
+
Object.defineProperty(exports, "createDependencies", { enumerable: true, get: function () { return plugin_1.createDependencies; } });
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
/**
|
|
3
|
+
* The `@nx/dotnet/plugin` subpath export has been removed in favor of the bare
|
|
4
|
+
* `@nx/dotnet` specifier. This migration rewrites any `nx.json` plugin entries
|
|
5
|
+
* that still register the plugin via the old `@nx/dotnet/plugin` path, updating
|
|
6
|
+
* each entry in place so the order of the `plugins` array is preserved.
|
|
7
|
+
*/
|
|
8
|
+
export default function update(tree: Tree): void;
|
|
9
|
+
//# sourceMappingURL=update-plugin-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-plugin-path.d.ts","sourceRoot":"","sources":["../../../src/migrations/update-23-0-0/update-plugin-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAgB,MAAM,YAAY,CAAC;AAK5D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,IAAI,EAAE,IAAI,QAuBxC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const OLD_PATH = '@nx/dotnet/plugin';
|
|
6
|
+
const NEW_PATH = '@nx/dotnet';
|
|
7
|
+
/**
|
|
8
|
+
* The `@nx/dotnet/plugin` subpath export has been removed in favor of the bare
|
|
9
|
+
* `@nx/dotnet` specifier. This migration rewrites any `nx.json` plugin entries
|
|
10
|
+
* that still register the plugin via the old `@nx/dotnet/plugin` path, updating
|
|
11
|
+
* each entry in place so the order of the `plugins` array is preserved.
|
|
12
|
+
*/
|
|
13
|
+
function update(tree) {
|
|
14
|
+
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
15
|
+
if (!nxJson?.plugins?.length) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let updated = false;
|
|
19
|
+
for (let i = 0; i < nxJson.plugins.length; i++) {
|
|
20
|
+
const plugin = nxJson.plugins[i];
|
|
21
|
+
if (typeof plugin === 'string') {
|
|
22
|
+
if (plugin === OLD_PATH) {
|
|
23
|
+
nxJson.plugins[i] = NEW_PATH;
|
|
24
|
+
updated = true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else if (plugin.plugin === OLD_PATH) {
|
|
28
|
+
plugin.plugin = NEW_PATH;
|
|
29
|
+
updated = true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (updated) {
|
|
33
|
+
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
34
|
+
}
|
|
35
|
+
}
|
package/dist/plugins/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
export
|
|
1
|
+
export declare const name: string;
|
|
2
|
+
export declare const createNodes: import("packages/devkit/dist").CreateNodes<import("./create-nodes").DotNetPluginOptions>;
|
|
3
|
+
export declare const createNodesV2: import("packages/devkit/dist").CreateNodes<import("./create-nodes").DotNetPluginOptions>;
|
|
4
|
+
export declare const createDependencies: import("packages/devkit/dist").CreateDependencies<import("./create-nodes").DotNetPluginOptions>;
|
|
5
5
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/plugin.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI,QAAoD,CAAC;AAEtE,eAAO,MAAM,WAAW,0FAA2C,CAAC;AAEpE,eAAO,MAAM,aAAa,0FAA2C,CAAC;AAEtE,eAAO,MAAM,kBAAkB,iGAEH,CAAC"}
|
package/dist/plugins/plugin.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDependencies = exports.createNodesV2 = exports.createNodes = exports.name = void 0;
|
|
2
4
|
const create_nodes_1 = require("./create-nodes");
|
|
3
5
|
const create_dependencies_1 = require("./create-dependencies");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
module.exports = plugin;
|
|
6
|
+
// The plugin can be fully disabled (e.g. to debug graph issues) via the
|
|
7
|
+
// NX_DOTNET_DISABLE environment variable. When disabled, no nodes or
|
|
8
|
+
// dependencies are created so Nx effectively ignores .NET projects.
|
|
9
|
+
const disabled = process.env.NX_DOTNET_DISABLE === 'true';
|
|
10
|
+
exports.name = disabled ? '@nx/dotnet [disabled]' : '@nx/dotnet';
|
|
11
|
+
exports.createNodes = disabled ? undefined : create_nodes_1.createNodes;
|
|
12
|
+
exports.createNodesV2 = disabled ? undefined : create_nodes_1.createNodes;
|
|
13
|
+
exports.createDependencies = disabled
|
|
14
|
+
? undefined
|
|
15
|
+
: create_dependencies_1.createDependencies;
|
package/dist/readme-template.md
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
<hr>
|
|
11
11
|
|
|
12
|
-
> Note: The `@nx/dotnet` plugin is currently experimental. Features and APIs may change.
|
|
13
|
-
|
|
14
12
|
# Nx: Smart Monorepos · Fast Builds
|
|
15
13
|
|
|
16
14
|
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
package/migrations.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generators": {
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-23-0-0-migrate-dotnet-plugin-path": {
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"version": "23.0.0-beta.24",
|
|
6
|
+
"description": "Update `nx.json` plugin registrations that use the removed `@nx/dotnet/plugin` subpath to the bare `@nx/dotnet` specifier.",
|
|
7
|
+
"implementation": "./dist/migrations/update-23-0-0/update-plugin-path"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
3
10
|
"packageJsonUpdates": {}
|
|
4
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/dotnet",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for .NET containing graph support for working with .NET projects in an Nx workspace.",
|
|
6
6
|
"keywords": [
|
|
@@ -26,13 +26,10 @@
|
|
|
26
26
|
"type": "commonjs",
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
+
"@nx/nx-source": "./src/index.ts",
|
|
29
30
|
"default": "./dist/index.js",
|
|
30
31
|
"types": "./dist/index.d.ts"
|
|
31
32
|
},
|
|
32
|
-
"./plugin": {
|
|
33
|
-
"default": "./dist/plugin.js",
|
|
34
|
-
"types": "./dist/plugin.d.ts"
|
|
35
|
-
},
|
|
36
33
|
"./generators/*/schema.json": "./dist/generators/*/schema.json",
|
|
37
34
|
"./generators/*/schema": "./dist/generators/*/schema.d.ts",
|
|
38
35
|
"./generators.json": "./generators.json",
|
|
@@ -41,7 +38,7 @@
|
|
|
41
38
|
},
|
|
42
39
|
"main": "./dist/index.js",
|
|
43
40
|
"types": "./dist/index.d.ts",
|
|
44
|
-
"typings": "./dist/
|
|
41
|
+
"typings": "./dist/index.d.ts",
|
|
45
42
|
"files": [
|
|
46
43
|
"dist",
|
|
47
44
|
"generators.json",
|
|
@@ -50,18 +47,18 @@
|
|
|
50
47
|
"!dist/tsconfig.lib.tsbuildinfo"
|
|
51
48
|
],
|
|
52
49
|
"dependencies": {
|
|
53
|
-
"@nx/devkit": "23.0.0-beta.23",
|
|
54
50
|
"tslib": "^2.3.0",
|
|
55
|
-
"ignore": "^7.0.5"
|
|
51
|
+
"ignore": "^7.0.5",
|
|
52
|
+
"@nx/devkit": "23.0.0-beta.25"
|
|
56
53
|
},
|
|
57
54
|
"devDependencies": {
|
|
58
55
|
"@types/jest": "30.0.0",
|
|
59
56
|
"@types/node": "^24.11.0",
|
|
60
57
|
"jest": "30.3.0",
|
|
61
58
|
"memfs": "^4.9.2",
|
|
62
|
-
"nx": "23.0.0-beta.23",
|
|
63
59
|
"ts-jest": "^29.4.0",
|
|
64
|
-
"typescript": "~5.9.2"
|
|
60
|
+
"typescript": "~5.9.2",
|
|
61
|
+
"nx": "23.0.0-beta.25"
|
|
65
62
|
},
|
|
66
63
|
"publishConfig": {
|
|
67
64
|
"access": "public"
|
|
@@ -69,7 +66,8 @@
|
|
|
69
66
|
"executors": "./executors.json",
|
|
70
67
|
"generators": "./generators.json",
|
|
71
68
|
"nx-migrations": {
|
|
72
|
-
"migrations": "./migrations.json"
|
|
69
|
+
"migrations": "./migrations.json",
|
|
70
|
+
"supportsOptionalUpdates": true
|
|
73
71
|
},
|
|
74
72
|
"scripts": {}
|
|
75
73
|
}
|
package/dist/plugin.d.ts
DELETED
package/dist/plugin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,GACnB,MAAM,kBAAkB,CAAC"}
|
package/dist/plugin.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createDependencies = exports.createNodes = exports.createNodesV2 = void 0;
|
|
4
|
-
var plugin_1 = require("./plugins/plugin");
|
|
5
|
-
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_1.createNodesV2; } });
|
|
6
|
-
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
|
|
7
|
-
Object.defineProperty(exports, "createDependencies", { enumerable: true, get: function () { return plugin_1.createDependencies; } });
|