@nx/devkit 16.7.0-rc.1 → 16.7.1
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/nx-reexports-pre16.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type { Generator, GeneratorCallback, Executor, ExecutorContext, TaskGraph
|
|
|
19
19
|
* @category Workspace
|
|
20
20
|
*/
|
|
21
21
|
export { Workspaces } from 'nx/src/config/workspaces';
|
|
22
|
-
export {
|
|
22
|
+
export { workspaceLayout } from 'nx/src/config/configuration';
|
|
23
23
|
export type { NxPlugin, ProjectTargetConfigurator, } from 'nx/src/utils/nx-plugin';
|
|
24
24
|
/**
|
|
25
25
|
* @category Workspace
|
package/nx-reexports-pre16.js
CHANGED
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
* If you need to export something from nx, it should go into nx/src/devkit-exports
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.cacheDir = exports.defaultTasksRunner = exports.getOutputsForTargetAndConfiguration = exports.readCachedProjectGraph = exports.createProjectGraphAsync = exports.reverse = exports.appRootPath = exports.workspaceRoot = exports.normalizePath = exports.joinPathFragments = exports.stripIndents = exports.writeJsonFile = exports.readJsonFile = exports.stripJsonComments = exports.serializeJson = exports.parseJson = exports.updateJson = exports.writeJson = exports.readJson = exports.ProjectGraphBuilder = exports.DependencyType = exports.getWorkspacePath = exports.isStandaloneProject = exports.updateWorkspaceConfiguration = exports.readWorkspaceConfiguration = exports.updateNxJson = exports.readNxJson = exports.getProjects = exports.updateProjectConfiguration = exports.removeProjectConfiguration = exports.readProjectConfiguration = exports.addProjectConfiguration = exports.runExecutor = exports.getPackageManagerVersion = exports.detectPackageManager = exports.getPackageManagerCommand = exports.output = exports.logger = exports.workspaceLayout = exports.
|
|
8
|
+
exports.cacheDir = exports.defaultTasksRunner = exports.getOutputsForTargetAndConfiguration = exports.readCachedProjectGraph = exports.createProjectGraphAsync = exports.reverse = exports.appRootPath = exports.workspaceRoot = exports.normalizePath = exports.joinPathFragments = exports.stripIndents = exports.writeJsonFile = exports.readJsonFile = exports.stripJsonComments = exports.serializeJson = exports.parseJson = exports.updateJson = exports.writeJson = exports.readJson = exports.ProjectGraphBuilder = exports.DependencyType = exports.getWorkspacePath = exports.isStandaloneProject = exports.updateWorkspaceConfiguration = exports.readWorkspaceConfiguration = exports.updateNxJson = exports.readNxJson = exports.getProjects = exports.updateProjectConfiguration = exports.removeProjectConfiguration = exports.readProjectConfiguration = exports.addProjectConfiguration = exports.runExecutor = exports.getPackageManagerVersion = exports.detectPackageManager = exports.getPackageManagerCommand = exports.output = exports.logger = exports.workspaceLayout = exports.Workspaces = void 0;
|
|
9
9
|
/**
|
|
10
10
|
* @category Workspace
|
|
11
11
|
*/
|
|
12
12
|
var workspaces_1 = require("nx/src/config/workspaces");
|
|
13
13
|
Object.defineProperty(exports, "Workspaces", { enumerable: true, get: function () { return workspaces_1.Workspaces; } });
|
|
14
14
|
var configuration_1 = require("nx/src/config/configuration");
|
|
15
|
-
Object.defineProperty(exports, "readAllWorkspaceConfiguration", { enumerable: true, get: function () { return configuration_1.readAllWorkspaceConfiguration; } });
|
|
16
15
|
Object.defineProperty(exports, "workspaceLayout", { enumerable: true, get: function () { return configuration_1.workspaceLayout; } });
|
|
17
16
|
/**
|
|
18
17
|
* @category Logger
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/devkit",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.1",
|
|
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.7.
|
|
31
|
+
"@nrwl/devkit": "16.7.1",
|
|
32
32
|
"ejs": "^3.1.7",
|
|
33
33
|
"enquirer": "~2.3.6",
|
|
34
34
|
"ignore": "^5.0.4",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"migrations": "./migrations.json"
|
|
47
47
|
},
|
|
48
48
|
"type": "commonjs",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "8b38708d6c18496711695499d07c95f3ecc31cc9"
|
|
50
50
|
}
|
|
@@ -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 { Workspaces, readNxJsonFromDisk } = (0, nx_1.requireNx)();
|
|
6
|
+
const { Workspaces, readNxJsonFromDisk, retrieveProjectConfigurationsWithAngularProjects, } = (0, nx_1.requireNx)();
|
|
7
7
|
/**
|
|
8
8
|
* Convert an Nx Executor into an Angular Devkit Builder
|
|
9
9
|
*
|
|
@@ -17,10 +17,16 @@ function convertNxExecutor(executor) {
|
|
|
17
17
|
? readNxJsonFromDisk(builderContext.workspaceRoot)
|
|
18
18
|
: // TODO(v18): remove readNxJson. This is to be backwards compatible with Nx 16.5 and below.
|
|
19
19
|
workspaces.readNxJson();
|
|
20
|
-
const projectsConfigurations = workspaces.readProjectsConfigurations({
|
|
21
|
-
_includeProjectsFromAngularJson: true,
|
|
22
|
-
});
|
|
23
20
|
const promise = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const projectsConfigurations = retrieveProjectConfigurationsWithAngularProjects
|
|
22
|
+
? {
|
|
23
|
+
version: 2,
|
|
24
|
+
projects: yield retrieveProjectConfigurationsWithAngularProjects(builderContext.workspaceRoot, nxJsonConfiguration),
|
|
25
|
+
}
|
|
26
|
+
: // TODO(v18): remove retrieveProjectConfigurations. This is to be backwards compatible with Nx 16.5 and below.
|
|
27
|
+
workspaces.readProjectsConfigurations({
|
|
28
|
+
_includeProjectsFromAngularJson: true,
|
|
29
|
+
});
|
|
24
30
|
const context = {
|
|
25
31
|
root: builderContext.workspaceRoot,
|
|
26
32
|
projectName: builderContext.target.project,
|