@nx/devkit 20.0.0-canary.20241003-84a5c7a → 20.0.0-canary.20241005-75c1da3

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": "20.0.0-canary.20241003-84a5c7a",
3
+ "version": "20.0.0-canary.20241005-75c1da3",
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": {
@@ -38,7 +38,7 @@
38
38
  "enquirer": "~2.3.6"
39
39
  },
40
40
  "peerDependencies": {
41
- "nx": ">= 17 <= 20"
41
+ "nx": ">= 19 <= 21"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
@@ -1,8 +1,4 @@
1
1
  import { ExecutorContext, ProjectGraph, Target } from 'nx/src/devkit-exports';
2
- /**
3
- * @deprecated(v17) A project graph should be passed to parseTargetString for best accuracy.
4
- */
5
- export declare function parseTargetString(targetString: string): Target;
6
2
  /**
7
3
  * Parses a target string into {project, target, configuration}
8
4
  *
@@ -9,7 +9,7 @@ const devkit_internals_1 = require("nx/src/devkit-internals");
9
9
  * Works as if you invoked the target yourself without passing any command lint overrides.
10
10
  */
11
11
  function readTargetOptions({ project, target, configuration }, context) {
12
- const projectConfiguration = (context.workspace || context.projectsConfigurations).projects[project];
12
+ const projectConfiguration = context.projectsConfigurations.projects[project];
13
13
  if (!projectConfiguration) {
14
14
  throw new Error(`Unable to find project ${project}`);
15
15
  }
@@ -18,7 +18,7 @@ function readTargetOptions({ project, target, configuration }, context) {
18
18
  throw new Error(`Unable to find target ${target} for project ${project}`);
19
19
  }
20
20
  const [nodeModule, executorName] = targetConfiguration.executor.split(':');
21
- const { schema } = (0, devkit_internals_1.getExecutorInformation)(nodeModule, executorName, context.root, context.projectsConfigurations?.projects ?? context.workspace.projects);
21
+ const { schema } = (0, devkit_internals_1.getExecutorInformation)(nodeModule, executorName, context.root, context.projectsConfigurations?.projects);
22
22
  const defaultProject = (0, devkit_internals_1.calculateDefaultProjectName)(context.cwd, context.root, { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration);
23
23
  return (0, devkit_internals_1.combineOptionsForExecutor)({}, configuration ?? targetConfiguration.defaultConfiguration ?? '', targetConfiguration, schema, defaultProject, (0, path_1.relative)(context.root, context.cwd));
24
24
  }