@code-pushup/cli 0.8.6 → 0.8.7
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/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,15 +7,15 @@ import { hideBin } from "yargs/helpers";
|
|
|
7
7
|
import chalk5 from "chalk";
|
|
8
8
|
|
|
9
9
|
// packages/core/src/lib/implementation/persist.ts
|
|
10
|
-
import { existsSync, mkdirSync } from "fs";
|
|
11
|
-
import { stat as stat2, writeFile } from "fs/promises";
|
|
12
|
-
import { join as join2 } from "path";
|
|
10
|
+
import { existsSync, mkdirSync } from "node:fs";
|
|
11
|
+
import { stat as stat2, writeFile } from "node:fs/promises";
|
|
12
|
+
import { join as join2 } from "node:path";
|
|
13
13
|
|
|
14
14
|
// packages/utils/src/lib/execute-process.ts
|
|
15
|
-
import { spawn } from "child_process";
|
|
15
|
+
import { spawn } from "node:child_process";
|
|
16
16
|
|
|
17
17
|
// packages/utils/src/lib/report.ts
|
|
18
|
-
import { join } from "path";
|
|
18
|
+
import { join } from "node:path";
|
|
19
19
|
|
|
20
20
|
// packages/models/src/lib/audit.ts
|
|
21
21
|
import { z as z2 } from "zod";
|
|
@@ -558,11 +558,11 @@ var SCORE_COLOR_RANGE = {
|
|
|
558
558
|
// packages/utils/src/lib/file-system.ts
|
|
559
559
|
import { bundleRequire } from "bundle-require";
|
|
560
560
|
import chalk from "chalk";
|
|
561
|
-
import { mkdir, readFile, readdir, stat } from "fs/promises";
|
|
561
|
+
import { mkdir, readFile, readdir, stat } from "node:fs/promises";
|
|
562
562
|
|
|
563
563
|
// packages/utils/src/lib/formatting.ts
|
|
564
564
|
function slugify(text) {
|
|
565
|
-
return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-
|
|
565
|
+
return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z\d-]/g, "");
|
|
566
566
|
}
|
|
567
567
|
function formatBytes(bytes, decimals = 2) {
|
|
568
568
|
bytes = Math.max(bytes, 0);
|
|
@@ -1533,7 +1533,7 @@ function validateCommitData(commitData) {
|
|
|
1533
1533
|
import chalk4 from "chalk";
|
|
1534
1534
|
|
|
1535
1535
|
// packages/core/src/lib/implementation/runner.ts
|
|
1536
|
-
import { join as join3 } from "path";
|
|
1536
|
+
import { join as join3 } from "node:path";
|
|
1537
1537
|
async function executeRunnerConfig(cfg, onProgress) {
|
|
1538
1538
|
const { args, command, outputFile, outputTransform } = cfg;
|
|
1539
1539
|
const { duration, date } = await executeProcess({
|
|
@@ -1644,7 +1644,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
|
|
|
1644
1644
|
|
|
1645
1645
|
// packages/core/package.json
|
|
1646
1646
|
var name = "@code-pushup/core";
|
|
1647
|
-
var version = "0.8.
|
|
1647
|
+
var version = "0.8.7";
|
|
1648
1648
|
|
|
1649
1649
|
// packages/core/src/lib/implementation/collect.ts
|
|
1650
1650
|
async function collect(options2) {
|