@nx/devkit 16.3.0-beta.5 → 16.3.0-beta.7
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": "16.3.0-beta.
|
|
3
|
+
"version": "16.3.0-beta.7",
|
|
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.",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://nx.dev",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nrwl/devkit": "16.3.0-beta.
|
|
31
|
+
"@nrwl/devkit": "16.3.0-beta.7",
|
|
32
32
|
"ejs": "^3.1.7",
|
|
33
33
|
"ignore": "^5.0.4",
|
|
34
34
|
"semver": "7.3.4",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"migrations": "./migrations.json"
|
|
46
46
|
},
|
|
47
47
|
"types": "./index.d.ts",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3e86ffcd78b203ed74400764565347c0576d60c8"
|
|
49
49
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.convertNxExecutor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nx_1 = require("../../nx");
|
|
6
|
-
const {
|
|
6
|
+
const { Workspaces } = (0, nx_1.requireNx)();
|
|
7
7
|
/**
|
|
8
8
|
* Convert an Nx Executor into an Angular Devkit Builder
|
|
9
9
|
*
|
|
@@ -18,13 +18,6 @@ function convertNxExecutor(executor) {
|
|
|
18
18
|
_includeProjectsFromAngularJson: true,
|
|
19
19
|
});
|
|
20
20
|
const promise = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
let projectGraph;
|
|
22
|
-
try {
|
|
23
|
-
projectGraph = readCachedProjectGraph();
|
|
24
|
-
}
|
|
25
|
-
catch (_a) {
|
|
26
|
-
projectGraph = yield createProjectGraphAsync();
|
|
27
|
-
}
|
|
28
21
|
const context = {
|
|
29
22
|
root: builderContext.workspaceRoot,
|
|
30
23
|
projectName: builderContext.target.project,
|
|
@@ -34,7 +27,8 @@ function convertNxExecutor(executor) {
|
|
|
34
27
|
projectsConfigurations,
|
|
35
28
|
nxJsonConfiguration,
|
|
36
29
|
cwd: process.cwd(),
|
|
37
|
-
projectGraph,
|
|
30
|
+
projectGraph: null,
|
|
31
|
+
taskGraph: null,
|
|
38
32
|
isVerbose: false,
|
|
39
33
|
};
|
|
40
34
|
return executor(options, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-nx-executor.js","sourceRoot":"","sources":["../../../../../packages/devkit/src/utils/convert-nx-executor.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"convert-nx-executor.js","sourceRoot":"","sources":["../../../../../packages/devkit/src/utils/convert-nx-executor.ts"],"names":[],"mappings":";;;;AAEA,iCAAqC;AAErC,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,cAAS,GAAE,CAAC;AAEnC;;;;GAIG;AACH,6EAA6E;AAC7E,SAAgB,iBAAiB,CAAC,QAAkB;IAClD,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE;QAClD,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAChE,MAAM,mBAAmB,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;QACpD,MAAM,sBAAsB,GAAG,UAAU,CAAC,0BAA0B,CAAC;YACnE,+BAA+B,EAAE,IAAI;SACtC,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,GAAS,EAAE;YACzB,MAAM,OAAO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