@nx/devkit 16.7.0-beta.1 → 16.7.0-beta.3

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.7.0-beta.1",
3
+ "version": "16.7.0-beta.3",
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.0-beta.1",
31
+ "@nrwl/devkit": "16.7.0-beta.3",
32
32
  "ejs": "^3.1.7",
33
33
  "ignore": "^5.0.4",
34
34
  "semver": "7.5.3",
@@ -45,5 +45,5 @@
45
45
  "migrations": "./migrations.json"
46
46
  },
47
47
  "types": "./index.d.ts",
48
- "gitHead": "50a145bb64edcf76985184a9a83d1449dcd4f3d9"
48
+ "gitHead": "118faf4e432667fd041954d96aa6c9c99fea5ebd"
49
49
  }
@@ -4,6 +4,7 @@ exports.readTargetOptions = void 0;
4
4
  // eslint-disable-next-line @typescript-eslint/no-restricted-imports
5
5
  const params_1 = require("nx/src/utils/params");
6
6
  const nx_1 = require("../../nx");
7
+ const path_1 = require("path");
7
8
  const { Workspaces, getExecutorInformation, calculateDefaultProjectName } = (0, nx_1.requireNx)();
8
9
  /**
9
10
  * Reads and combines options for a given target.
@@ -14,6 +15,7 @@ function readTargetOptions({ project, target, configuration }, context) {
14
15
  var _a;
15
16
  const projectConfiguration = (context.workspace || context.projectsConfigurations).projects[project];
16
17
  const targetConfiguration = projectConfiguration.targets[target];
18
+ // TODO(v18): remove Workspaces.
17
19
  const ws = new Workspaces(context.root);
18
20
  const [nodeModule, executorName] = targetConfiguration.executor.split(':');
19
21
  const { schema } = getExecutorInformation
@@ -24,6 +26,6 @@ function readTargetOptions({ project, target, configuration }, context) {
24
26
  ? calculateDefaultProjectName(context.cwd, context.root, { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration)
25
27
  : // TODO(v18): remove calculateDefaultProjectName. This is to be backwards compatible with Nx 16.5 and below.
26
28
  ws.calculateDefaultProjectName(context.cwd, { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration);
27
- return (0, params_1.combineOptionsForExecutor)({}, (_a = configuration !== null && configuration !== void 0 ? configuration : targetConfiguration.defaultConfiguration) !== null && _a !== void 0 ? _a : '', targetConfiguration, schema, defaultProject, ws.relativeCwd(context.cwd));
29
+ return (0, params_1.combineOptionsForExecutor)({}, (_a = configuration !== null && configuration !== void 0 ? configuration : targetConfiguration.defaultConfiguration) !== null && _a !== void 0 ? _a : '', targetConfiguration, schema, defaultProject, (0, path_1.relative)(context.cwd, context.root));
28
30
  }
29
31
  exports.readTargetOptions = readTargetOptions;