@nx/playwright 23.2.0-beta.3 → 23.2.0-beta.5

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.
@@ -8,18 +8,14 @@ const internal_2 = require("@nx/js/internal");
8
8
  const minimatch_1 = require("minimatch");
9
9
  const node_fs_1 = require("node:fs");
10
10
  const node_path_1 = require("node:path");
11
- const file_hasher_1 = require("nx/src/hasher/file-hasher");
12
- const cache_directory_1 = require("nx/src/utils/cache-directory");
13
- const plugin_cache_utils_1 = require("nx/src/utils/plugin-cache-utils");
14
- const workspace_context_1 = require("nx/src/utils/workspace-context");
15
11
  const reporters_1 = require("../utils/reporters");
16
12
  const playwrightConfigGlob = '**/playwright.config.{js,ts,cjs,cts,mjs,mts}';
17
13
  exports.createNodes = [
18
14
  playwrightConfigGlob,
19
15
  async (configFilePaths, options, context) => {
20
- const optionsHash = (0, file_hasher_1.hashObject)(options);
21
- const cachePath = (0, node_path_1.join)(cache_directory_1.workspaceDataDirectory, `playwright-${optionsHash}.hash`);
22
- const pluginCache = new plugin_cache_utils_1.PluginCache(cachePath);
16
+ const optionsHash = (0, internal_1.hashObject)(options);
17
+ const cachePath = (0, node_path_1.join)(internal_1.workspaceDataDirectory, `playwright-${optionsHash}.hash`);
18
+ const pluginCache = new internal_1.PluginCache(cachePath);
23
19
  const packageManager = (0, devkit_1.detectPackageManager)(context.workspaceRoot);
24
20
  const pmc = (0, devkit_1.getPackageManagerCommand)(packageManager);
25
21
  const lockFileName = (0, js_1.getLockFileName)(packageManager);
@@ -249,7 +245,7 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
249
245
  return { targets, metadata };
250
246
  }
251
247
  async function getAllTestFiles(opts) {
252
- const files = await (0, workspace_context_1.getFilesInDirectoryUsingContext)(opts.context.workspaceRoot, opts.path);
248
+ const files = await (0, internal_1.getFilesInDirectoryUsingContext)(opts.context.workspaceRoot, opts.path);
253
249
  const matcher = createMatcher(opts.config.testMatch);
254
250
  const ignoredMatcher = opts.config.testIgnore
255
251
  ? createMatcher(opts.config.testIgnore)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/playwright",
3
- "version": "23.2.0-beta.3",
3
+ "version": "23.2.0-beta.5",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -78,12 +78,12 @@
78
78
  "tslib": "^2.3.0",
79
79
  "minimatch": "10.2.5",
80
80
  "semver": "^7.6.3",
81
- "@nx/devkit": "23.2.0-beta.3",
82
- "@nx/eslint": "23.2.0-beta.3",
83
- "@nx/js": "23.2.0-beta.3"
81
+ "@nx/devkit": "23.2.0-beta.5",
82
+ "@nx/eslint": "23.2.0-beta.5",
83
+ "@nx/js": "23.2.0-beta.5"
84
84
  },
85
85
  "devDependencies": {
86
- "nx": "23.2.0-beta.3"
86
+ "nx": "23.2.0-beta.5"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@playwright/test": "^1.36.0"