@nx/plugin 21.3.0-beta.1 → 21.3.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/plugin",
3
- "version": "21.3.0-beta.1",
3
+ "version": "21.3.0-beta.3",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.3.0",
31
- "@nx/devkit": "21.3.0-beta.1",
32
- "@nx/jest": "21.3.0-beta.1",
33
- "@nx/js": "21.3.0-beta.1",
34
- "@nx/eslint": "21.3.0-beta.1"
31
+ "@nx/devkit": "21.3.0-beta.3",
32
+ "@nx/jest": "21.3.0-beta.3",
33
+ "@nx/js": "21.3.0-beta.3",
34
+ "@nx/eslint": "21.3.0-beta.3"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -97,16 +97,18 @@ async function addJest(host, options) {
97
97
  (0, jest_1.addPropertyToJestConfig)(host, (0, path_1.join)(options.projectRoot, 'jest.config.ts'), 'globalTeardown', (0, path_1.join)((0, devkit_1.offsetFromRoot)(options.projectRoot), stopLocalRegistryPath));
98
98
  const project = (0, devkit_1.readProjectConfiguration)(host, options.projectName);
99
99
  project.targets ??= {};
100
- const e2eTarget = project.targets.e2e;
101
- project.targets.e2e = {
102
- ...e2eTarget,
103
- dependsOn: [`^build`],
104
- options: {
105
- ...e2eTarget.options,
106
- runInBand: true,
107
- },
108
- };
109
- (0, devkit_1.updateProjectConfiguration)(host, options.projectName, project);
100
+ if (project.targets.e2e) {
101
+ const e2eTarget = project.targets.e2e;
102
+ project.targets.e2e = {
103
+ ...e2eTarget,
104
+ dependsOn: [`^build`],
105
+ options: {
106
+ ...e2eTarget.options,
107
+ runInBand: true,
108
+ },
109
+ };
110
+ (0, devkit_1.updateProjectConfiguration)(host, options.projectName, project);
111
+ }
110
112
  return jestTask;
111
113
  }
112
114
  async function addLintingToApplication(tree, options) {