@nx/playwright 21.0.0-canary.20250502-110614d → 21.0.0-canary.20250503-675e6ed

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/playwright",
3
- "version": "21.0.0-canary.20250502-110614d",
3
+ "version": "21.0.0-canary.20250503-675e6ed",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "21.0.0-canary.20250502-110614d",
39
- "@nx/eslint": "21.0.0-canary.20250502-110614d",
40
- "@nx/js": "21.0.0-canary.20250502-110614d",
38
+ "@nx/devkit": "21.0.0-canary.20250503-675e6ed",
39
+ "@nx/eslint": "21.0.0-canary.20250503-675e6ed",
40
+ "@nx/js": "21.0.0-canary.20250503-675e6ed",
41
41
  "tslib": "^2.3.0",
42
42
  "minimatch": "9.0.3"
43
43
  },
@@ -15,6 +15,7 @@ const path = require("path");
15
15
  const add_linter_1 = require("../../utils/add-linter");
16
16
  const versions_1 = require("../../utils/versions");
17
17
  const init_1 = require("../init/init");
18
+ const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
18
19
  function configurationGenerator(tree, options) {
19
20
  return configurationGeneratorInternal(tree, { addPlugin: false, ...options });
20
21
  }
@@ -121,7 +122,7 @@ async function configurationGeneratorInternal(tree, rawOptions) {
121
122
  }
122
123
  (0, devkit_1.writeJson)(tree, packageJsonPath, packageJson);
123
124
  }
124
- ignoreTestOutput(tree);
125
+ ignoreTestOutput(tree, options);
125
126
  }
126
127
  const hasPlugin = (0, devkit_1.readNxJson)(tree).plugins?.some((p) => typeof p === 'string'
127
128
  ? p === '@nx/playwright/plugin'
@@ -267,7 +268,12 @@ Rename or remove the existing e2e target.`);
267
268
  };
268
269
  (0, devkit_1.updateProjectConfiguration)(tree, options.project, projectConfig);
269
270
  }
270
- function ignoreTestOutput(tree) {
271
+ function ignoreTestOutput(tree, options) {
272
+ // Make sure playwright outputs are not linted.
273
+ if (options.linter === 'eslint') {
274
+ (0, eslint_file_1.addIgnoresToLintConfig)(tree, '', ['**/test-output']);
275
+ }
276
+ // Handle gitignore
271
277
  if (!tree.exists('.gitignore')) {
272
278
  devkit_1.logger.warn(`Couldn't find a root .gitignore file to update.`);
273
279
  }