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.
@@ -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-eHjv9XuA.js");
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
- if (options.rebuild || !existsSync(distHtml)) {
1589
- console.log("[tessera a11y] Building course…");
1590
- await vite.build(vite.mergeConfig(auditBaseConfig, {
1591
- build: {
1592
- outDir: auditDist,
1593
- emptyOutDir: true
1594
- },
1595
- logLevel: "warn"
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-B9VHgVjk.js.map
1730
+ //# sourceMappingURL=audit--fSWIOgK.js.map