tessera-learn 0.2.2 → 0.2.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/AGENTS.md +117 -515
- package/dist/{audit-B9VHgVjk.js → audit--fSWIOgK.js} +10 -13
- package/dist/{audit-B9VHgVjk.js.map → audit--fSWIOgK.js.map} +1 -1
- package/dist/{build-commands-D127jw0J.js → build-commands-Qyrlsp3n.js} +2 -2
- package/dist/{build-commands-D127jw0J.js.map → build-commands-Qyrlsp3n.js.map} +1 -1
- package/dist/{inline-config-eHjv9XuA.js → inline-config-DqAKsCNl.js} +2 -2
- package/dist/{inline-config-eHjv9XuA.js.map → inline-config-DqAKsCNl.js.map} +1 -1
- package/dist/plugin/cli.d.ts.map +1 -1
- package/dist/plugin/cli.js +9 -12
- package/dist/plugin/cli.js.map +1 -1
- package/dist/plugin/index.d.ts +0 -2
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +2 -2
- package/dist/{plugin--8H9xQIl.js → plugin-B-aiL9-V.js} +2 -2
- package/dist/{plugin--8H9xQIl.js.map → plugin-B-aiL9-V.js.map} +1 -1
- package/package.json +11 -8
- package/src/plugin/a11y/audit.ts +8 -13
- package/src/plugin/a11y-cli.ts +1 -4
- package/src/plugin/cli.ts +2 -3
- package/src/plugin/validate-cli.ts +10 -4
|
@@ -1574,27 +1574,24 @@ async function runAudit(projectRoot, workspaceRoot, options = {}) {
|
|
|
1574
1574
|
const disableRules = axeIgnoreRules(settings.ignore);
|
|
1575
1575
|
const manifest = generateManifest(resolve(projectRoot, "pages"));
|
|
1576
1576
|
const vite = await import("vite");
|
|
1577
|
-
const { resolveTesseraConfig } = await import("./inline-config-
|
|
1577
|
+
const { resolveTesseraConfig } = await import("./inline-config-DqAKsCNl.js");
|
|
1578
1578
|
const auditBaseConfig = await resolveTesseraConfig(projectRoot, workspaceRoot, {
|
|
1579
1579
|
command: "build",
|
|
1580
1580
|
mode: "production"
|
|
1581
1581
|
});
|
|
1582
1582
|
const auditDist = resolve(projectRoot, "node_modules", ".tessera-a11y");
|
|
1583
|
-
const distHtml = resolve(auditDist, "index.html");
|
|
1584
1583
|
const prevEnv = process.env[AUDIT_ENV_FLAG];
|
|
1585
1584
|
process.env[AUDIT_ENV_FLAG] = "1";
|
|
1586
1585
|
let server;
|
|
1587
1586
|
try {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
}));
|
|
1597
|
-
}
|
|
1587
|
+
console.log("[tessera a11y] Building course…");
|
|
1588
|
+
await vite.build(vite.mergeConfig(auditBaseConfig, {
|
|
1589
|
+
build: {
|
|
1590
|
+
outDir: auditDist,
|
|
1591
|
+
emptyOutDir: true
|
|
1592
|
+
},
|
|
1593
|
+
logLevel: "warn"
|
|
1594
|
+
}));
|
|
1598
1595
|
server = await vite.preview({
|
|
1599
1596
|
root: projectRoot,
|
|
1600
1597
|
base: auditBaseConfig.base,
|
|
@@ -1730,4 +1727,4 @@ function printSummary(report, reportPath) {
|
|
|
1730
1727
|
//#endregion
|
|
1731
1728
|
export { isPlausibleLanguageTag as a, validateProject as c, isIgnored as i, generateManifest as l, runAudit as n, normalizeA11y as o, resolvePackageRoot as r, reportValidationIssues as s, AUDIT_ENV_FLAG as t, readCourseConfig as u };
|
|
1732
1729
|
|
|
1733
|
-
//# sourceMappingURL=audit
|
|
1730
|
+
//# sourceMappingURL=audit--fSWIOgK.js.map
|