@nx/playwright 19.7.0-canary.20240816-ce2dff3 → 19.7.0-canary.20240820-0853690

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/README.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # Nx: Smart Monorepos · Fast CI
24
24
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
25
+ Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
26
26
 
27
27
  ## Getting Started
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "19.7.0-canary.20240816-ce2dff3",
3
+ "version": "19.7.0-canary.20240820-0853690",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "19.7.0-canary.20240816-ce2dff3",
39
- "@nx/eslint": "19.7.0-canary.20240816-ce2dff3",
40
- "@nx/webpack": "19.7.0-canary.20240816-ce2dff3",
41
- "@nx/vite": "19.7.0-canary.20240816-ce2dff3",
42
- "@nx/js": "19.7.0-canary.20240816-ce2dff3",
38
+ "@nx/devkit": "19.7.0-canary.20240820-0853690",
39
+ "@nx/eslint": "19.7.0-canary.20240820-0853690",
40
+ "@nx/webpack": "19.7.0-canary.20240820-0853690",
41
+ "@nx/vite": "19.7.0-canary.20240820-0853690",
42
+ "@nx/js": "19.7.0-canary.20240820-0853690",
43
43
  "tslib": "^2.3.0",
44
44
  "minimatch": "9.0.3"
45
45
  },
@@ -1,4 +1,4 @@
1
- import type { Linter } from '@nx/eslint';
1
+ import type { Linter, LinterType } from '@nx/eslint';
2
2
 
3
3
  export interface ConfigurationGeneratorSchema {
4
4
  project: string;
@@ -10,7 +10,7 @@ export interface ConfigurationGeneratorSchema {
10
10
  skipFormat: boolean;
11
11
  skipPackageJson: boolean;
12
12
  skipInstall?: boolean;
13
- linter: Linter;
13
+ linter: Linter | LinterType;
14
14
  setParserOptionsProject: boolean; // default is false
15
15
  /**
16
16
  * command to give playwright to run the web server
@@ -40,7 +40,7 @@ async function addE2eCiTargetDefaults(tree) {
40
40
  if (!nodes.length) {
41
41
  continue;
42
42
  }
43
- const ciWebServerCommand = nodes[0].getText();
43
+ const ciWebServerCommand = nodes[0].getText().replace(/['"]/g, '');
44
44
  let serveStaticProject;
45
45
  let serveStaticTarget;
46
46
  let serveStaticConfiguration;
@@ -65,7 +65,7 @@ async function addE2eCiTargetDefaults(tree) {
65
65
  serveStaticTarget = matches[1];
66
66
  serveStaticProject = matches[2];
67
67
  }
68
- const resolvedServeStaticTarget = graph.nodes[serveStaticProject].data.targets[serveStaticTarget];
68
+ const resolvedServeStaticTarget = graph.nodes[serveStaticProject]?.data?.targets?.[serveStaticTarget];
69
69
  if (!resolvedServeStaticTarget) {
70
70
  continue;
71
71
  }
@@ -1,8 +1,8 @@
1
1
  import { GeneratorCallback, Tree } from '@nx/devkit';
2
- import { Linter } from '@nx/eslint';
2
+ import { Linter, LinterType } from '@nx/eslint';
3
3
  export interface PlaywrightLinterOptions {
4
4
  project: string;
5
- linter: Linter;
5
+ linter: Linter | LinterType;
6
6
  setParserOptionsProject: boolean;
7
7
  skipPackageJson: boolean;
8
8
  rootProject: boolean;