@allurereport/core 3.0.0-beta.25 → 3.0.0-beta.27
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/dist/config.js +16 -6
- package/package.json +18 -18
package/dist/config.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import * as console from "node:console";
|
|
2
2
|
import { readFile, stat } from "node:fs/promises";
|
|
3
|
-
import { resolve } from "node:path";
|
|
3
|
+
import { extname, resolve } from "node:path";
|
|
4
4
|
import * as process from "node:process";
|
|
5
5
|
import { parse } from "yaml";
|
|
6
6
|
import { readKnownIssues } from "./known.js";
|
|
7
7
|
import { FileSystemReportFiles } from "./plugin.js";
|
|
8
8
|
import { importWrapper } from "./utils/module.js";
|
|
9
9
|
import { normalizeImportPath } from "./utils/path.js";
|
|
10
|
-
const CONFIG_FILENAMES = [
|
|
10
|
+
const CONFIG_FILENAMES = [
|
|
11
|
+
"allurerc.js",
|
|
12
|
+
"allurerc.mjs",
|
|
13
|
+
"allurerc.cjs",
|
|
14
|
+
"allurerc.json",
|
|
15
|
+
"allurerc.yaml",
|
|
16
|
+
"allurerc.yml",
|
|
17
|
+
];
|
|
11
18
|
const DEFAULT_CONFIG = {};
|
|
12
19
|
export const getPluginId = (key) => {
|
|
13
20
|
return key.replace(/^@.*\//, "").replace(/[/\\]/g, "-");
|
|
@@ -127,14 +134,17 @@ export const resolveConfig = async (config, override = {}) => {
|
|
|
127
134
|
export const readConfig = async (cwd = process.cwd(), configPath, override) => {
|
|
128
135
|
const cfg = (await findConfig(cwd, configPath)) ?? "";
|
|
129
136
|
let config;
|
|
130
|
-
switch (
|
|
131
|
-
case
|
|
137
|
+
switch (extname(cfg)) {
|
|
138
|
+
case ".json":
|
|
132
139
|
config = await loadJsonConfig(cfg);
|
|
133
140
|
break;
|
|
134
|
-
case
|
|
141
|
+
case ".yaml":
|
|
142
|
+
case ".yml":
|
|
135
143
|
config = await loadYamlConfig(cfg);
|
|
136
144
|
break;
|
|
137
|
-
case
|
|
145
|
+
case ".js":
|
|
146
|
+
case ".cjs":
|
|
147
|
+
case ".mjs":
|
|
138
148
|
config = await loadJsConfig(cfg);
|
|
139
149
|
break;
|
|
140
150
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.27",
|
|
4
4
|
"description": "Collection of generic Allure utilities used across the entire project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
"test": "vitest run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@allurereport/ci": "3.0.0-beta.
|
|
29
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
30
|
-
"@allurereport/plugin-allure2": "3.0.0-beta.
|
|
31
|
-
"@allurereport/plugin-api": "3.0.0-beta.
|
|
32
|
-
"@allurereport/plugin-awesome": "3.0.0-beta.
|
|
33
|
-
"@allurereport/plugin-classic": "3.0.0-beta.
|
|
34
|
-
"@allurereport/plugin-csv": "3.0.0-beta.
|
|
35
|
-
"@allurereport/plugin-dashboard": "3.0.0-beta.
|
|
36
|
-
"@allurereport/plugin-jira": "3.0.0-beta.
|
|
37
|
-
"@allurereport/plugin-log": "3.0.0-beta.
|
|
38
|
-
"@allurereport/plugin-progress": "3.0.0-beta.
|
|
39
|
-
"@allurereport/plugin-slack": "3.0.0-beta.
|
|
40
|
-
"@allurereport/plugin-testplan": "3.0.0-beta.
|
|
41
|
-
"@allurereport/reader": "3.0.0-beta.
|
|
42
|
-
"@allurereport/reader-api": "3.0.0-beta.
|
|
43
|
-
"@allurereport/service": "3.0.0-beta.
|
|
44
|
-
"@allurereport/summary": "3.0.0-beta.
|
|
28
|
+
"@allurereport/ci": "3.0.0-beta.27",
|
|
29
|
+
"@allurereport/core-api": "3.0.0-beta.27",
|
|
30
|
+
"@allurereport/plugin-allure2": "3.0.0-beta.27",
|
|
31
|
+
"@allurereport/plugin-api": "3.0.0-beta.27",
|
|
32
|
+
"@allurereport/plugin-awesome": "3.0.0-beta.27",
|
|
33
|
+
"@allurereport/plugin-classic": "3.0.0-beta.27",
|
|
34
|
+
"@allurereport/plugin-csv": "3.0.0-beta.27",
|
|
35
|
+
"@allurereport/plugin-dashboard": "3.0.0-beta.27",
|
|
36
|
+
"@allurereport/plugin-jira": "3.0.0-beta.27",
|
|
37
|
+
"@allurereport/plugin-log": "3.0.0-beta.27",
|
|
38
|
+
"@allurereport/plugin-progress": "3.0.0-beta.27",
|
|
39
|
+
"@allurereport/plugin-slack": "3.0.0-beta.27",
|
|
40
|
+
"@allurereport/plugin-testplan": "3.0.0-beta.27",
|
|
41
|
+
"@allurereport/reader": "3.0.0-beta.27",
|
|
42
|
+
"@allurereport/reader-api": "3.0.0-beta.27",
|
|
43
|
+
"@allurereport/service": "3.0.0-beta.27",
|
|
44
|
+
"@allurereport/summary": "3.0.0-beta.27",
|
|
45
45
|
"handlebars": "^4.7.8",
|
|
46
46
|
"markdown-it": "^14.1.0",
|
|
47
47
|
"node-stream-zip": "^1.15.0",
|