@nx/playwright 19.0.3 → 19.1.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "19.0.3",
3
+ "version": "19.1.0-beta.0",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@phenomnomnominal/tsquery": "~5.0.1",
36
- "@nx/devkit": "19.0.3",
37
- "@nx/eslint": "19.0.3",
38
- "@nx/js": "19.0.3",
36
+ "@nx/devkit": "19.1.0-beta.0",
37
+ "@nx/eslint": "19.1.0-beta.0",
38
+ "@nx/js": "19.1.0-beta.0",
39
39
  "tslib": "^2.3.0",
40
40
  "minimatch": "9.0.3"
41
41
  },
@@ -22,7 +22,7 @@ async function initGeneratorInternal(tree, options) {
22
22
  }, undefined, options.keepExistingVersions));
23
23
  }
24
24
  if (options.addPlugin) {
25
- await (0, add_plugin_1.addPlugin)(tree, '@nx/playwright/plugin', plugin_1.createNodes, { targetName: ['e2e', 'playwright:e2e', 'playwright-e2e'] }, options.updatePackageScripts);
25
+ await (0, add_plugin_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/playwright/plugin', plugin_1.createNodes, { targetName: ['e2e', 'playwright:e2e', 'playwright-e2e'] }, options.updatePackageScripts);
26
26
  }
27
27
  if (!options.skipFormat) {
28
28
  await (0, devkit_1.formatFiles)(tree);
@@ -31,7 +31,8 @@ async function addLinterToPlaywrightProject(tree, options) {
31
31
  tasks.push(!options.skipPackageJson
32
32
  ? (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { 'eslint-plugin-playwright': versions_1.eslintPluginPlaywrightVersion })
33
33
  : () => { });
34
- if ((0, eslint_file_1.isEslintConfigSupported)(tree)) {
34
+ if ((0, eslint_file_1.isEslintConfigSupported)(tree, projectConfig.root) ||
35
+ (0, eslint_file_1.isEslintConfigSupported)(tree)) {
35
36
  (0, eslint_file_1.addExtendsToLintConfig)(tree, projectConfig.root, 'plugin:playwright/recommended');
36
37
  if (options.rootProject) {
37
38
  (0, eslint_file_1.addPluginsToLintConfig)(tree, projectConfig.root, '@nx');