@reddoorla/maintenance 0.10.2 → 0.10.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/dist/cli/bin.js +7 -2
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.js +6 -1
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/bin.js
CHANGED
|
@@ -1382,7 +1382,12 @@ async function a11yAudit(ctx) {
|
|
|
1382
1382
|
try {
|
|
1383
1383
|
raw = await spawn2("npx", ["--yes", "playwright", "test", "--reporter=line", specPath], {
|
|
1384
1384
|
cwd: site.path,
|
|
1385
|
-
env: { ...process.env, REDDOOR_A11Y_OUTPUT: resultsPath }
|
|
1385
|
+
env: { ...process.env, REDDOOR_A11Y_OUTPUT: resultsPath },
|
|
1386
|
+
// playwright on a cold tree downloads Chrome, boots the site's dev
|
|
1387
|
+
// server, and runs axe over every configured route. The shared 30 s
|
|
1388
|
+
// default in runAudits is fine for deps/lint/security but starves
|
|
1389
|
+
// playwright (mirrors the lighthouse fix shipped earlier).
|
|
1390
|
+
timeoutMs: 5 * 6e4
|
|
1386
1391
|
});
|
|
1387
1392
|
} catch (err) {
|
|
1388
1393
|
await rm2(specDir, { recursive: true, force: true });
|
|
@@ -2523,7 +2528,7 @@ function injectRestIntoProps(scriptBody) {
|
|
|
2523
2528
|
if (!match) return scriptBody;
|
|
2524
2529
|
const destructured = match[1] ?? "";
|
|
2525
2530
|
if (/\.\.\.\s*\w+/.test(destructured)) return scriptBody;
|
|
2526
|
-
const trimmed = destructured.trim();
|
|
2531
|
+
const trimmed = destructured.trim().replace(/,\s*$/, "");
|
|
2527
2532
|
const newDestructured = trimmed === "" ? " ...rest " : ` ${trimmed}, ...rest `;
|
|
2528
2533
|
let replacement;
|
|
2529
2534
|
if (match[2] !== void 0) {
|