@nx/playwright 20.5.0-beta.1 → 20.5.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/playwright",
3
- "version": "20.5.0-beta.1",
3
+ "version": "20.5.0-beta.3",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,26 +35,18 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "20.5.0-beta.1",
39
- "@nx/eslint": "20.5.0-beta.1",
40
- "@nx/js": "20.5.0-beta.1",
38
+ "@nx/devkit": "20.5.0-beta.3",
39
+ "@nx/eslint": "20.5.0-beta.3",
40
+ "@nx/js": "20.5.0-beta.3",
41
41
  "tslib": "^2.3.0",
42
42
  "minimatch": "9.0.3"
43
43
  },
44
44
  "peerDependencies": {
45
- "@playwright/test": "^1.36.0",
46
- "@nx/webpack": "file:../webpack",
47
- "@nx/vite": "file:../vite"
45
+ "@playwright/test": "^1.36.0"
48
46
  },
49
47
  "peerDependenciesMeta": {
50
48
  "@playwright/test": {
51
49
  "optional": true
52
- },
53
- "@nx/webpack": {
54
- "optional": true
55
- },
56
- "@nx/vite": {
57
- "optional": true
58
50
  }
59
51
  },
60
52
  "executors": "./executors.json",
@@ -84,8 +84,9 @@ async function default_1(tree) {
84
84
  : 'preview', projectToMigrate.configFileType === 'webpack'
85
85
  ? 'serveStaticTargetName'
86
86
  : 'previewTargetName', projectToMigrate.configFileType === 'webpack'
87
- ? (await getDynamicImportedModule('@nx/webpack/src/plugins/plugin', '@nx/webpack should be installed when attempting to setup @nx/playwright with a webpack config file.')).createNodesV2
88
- : (await getDynamicImportedModule('@nx/vite/plugin', '@nx/vite should be installed when attempting to setup @nx/playwright with a vite config file.')).createNodesV2)) ??
87
+ ? require('@nx/webpack/plugin').createNodesV2
88
+ : require('@nx/vite/plugin')
89
+ .createNodesV2)) ??
89
90
  getServeStaticLikeTarget(tree, graph, projectToMigrate.projectName, projectToMigrate.configFileType === 'webpack'
90
91
  ? '@nx/web:file-server'
91
92
  : '@nx/vite:preview-server');
@@ -131,14 +132,6 @@ async function default_1(tree) {
131
132
  await (0, add_e2e_ci_target_defaults_1.default)(tree);
132
133
  await (0, devkit_1.formatFiles)(tree);
133
134
  }
134
- async function getDynamicImportedModule(moduleName, error) {
135
- try {
136
- return (await Promise.resolve(`${moduleName}`).then(s => require(s)));
137
- }
138
- catch {
139
- throw new Error(error);
140
- }
141
- }
142
135
  async function getServeStaticTargetNameForConfigFile(tree, pluginName, configFile, defaultTargetName, targetNamePluginOption, createNodesV2) {
143
136
  const nxJson = (0, devkit_1.readNxJson)(tree);
144
137
  const matchingPluginRegistrations = nxJson.plugins?.filter((p) => typeof p === 'string' ? p === pluginName : p.plugin === pluginName);