@trackunit/iris-app-playwright 0.2.29 → 0.2.30

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": "@trackunit/iris-app-playwright",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "generators": "./generators.json",
@@ -5,7 +5,7 @@ export interface LogsReporterOptions {
5
5
  logsFolder: string;
6
6
  /** Directory where HAR files are moved on test failure (temp HAR deleted on pass) */
7
7
  harsFolder?: string;
8
- /** Workspace root used by createLogFile to locate .prettierrc */
8
+ /** Workspace root used by createLogFile to locate prettier.config.mjs */
9
9
  nxRoot: string;
10
10
  /** Prettier formatter instance */
11
11
  formatter: Formatter;
@@ -8,7 +8,7 @@ export type Formatter = {
8
8
  * Writes a file with Prettier formatting applied.
9
9
  * Automatically detects parser based on file extension.
10
10
  *
11
- * @param nxRoot - Absolute path to the NX workspace root (used to locate `.prettierrc`)
11
+ * @param nxRoot - Absolute path to the NX workspace root (used to locate `prettier.config.mjs`)
12
12
  * @param filePath - Destination file path
13
13
  * @param content - Raw file content to format and write
14
14
  * @param writer - Prettier formatter instance
@@ -9,14 +9,14 @@ const path = tslib_1.__importStar(require("path"));
9
9
  * Writes a file with Prettier formatting applied.
10
10
  * Automatically detects parser based on file extension.
11
11
  *
12
- * @param nxRoot - Absolute path to the NX workspace root (used to locate `.prettierrc`)
12
+ * @param nxRoot - Absolute path to the NX workspace root (used to locate `prettier.config.mjs`)
13
13
  * @param filePath - Destination file path
14
14
  * @param content - Raw file content to format and write
15
15
  * @param writer - Prettier formatter instance
16
16
  * @param writeOptions - Node.js `writeFileSync` options (default: UTF-8)
17
17
  */
18
18
  const writeFileWithPrettier = async (nxRoot, filePath, content, writer, writeOptions = { encoding: "utf-8" }) => {
19
- const prettierConfigPath = path.join(nxRoot, ".prettierrc");
19
+ const prettierConfigPath = path.join(nxRoot, "prettier.config.mjs");
20
20
  const options = await writer.resolveConfig(prettierConfigPath).catch(error => {
21
21
  devkit_1.logger.info(`Prettier config error: ${String(error)}`);
22
22
  return undefined;