@reddoorla/maintenance 0.16.0 → 0.17.1

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 CHANGED
@@ -2021,6 +2021,14 @@ function rendererFor(json) {
2021
2021
  async function runAuditCommand(site, opts) {
2022
2022
  const which = parseOnly(opts.only) ?? ALL_AUDIT_NAMES;
2023
2023
  const cwd = opts.cwd ? resolve2(opts.cwd) : process.cwd();
2024
+ if (opts.writeAirtable !== void 0 && opts.fleet !== void 0) {
2025
+ throw Object.assign(
2026
+ new Error(
2027
+ "--write-airtable is not supported with --fleet. Each site has its own Airtable row; run per-site instead: `cd <site>/ && reddoor-maint audit --write-airtable`."
2028
+ ),
2029
+ { exitCode: 2 }
2030
+ );
2031
+ }
2024
2032
  let sites = await resolveSites({
2025
2033
  ...site !== void 0 ? { site } : {},
2026
2034
  ...opts.fleet !== void 0 ? { fleet: opts.fleet } : {},
@@ -3654,7 +3662,7 @@ function scoresFromWebsite(siteRow) {
3654
3662
  }
3655
3663
  function daysAgo(today, n) {
3656
3664
  const out = new Date(today);
3657
- out.setDate(out.getDate() - n);
3665
+ out.setUTCDate(out.getUTCDate() - n);
3658
3666
  return out;
3659
3667
  }
3660
3668
  async function draftReportForSite(base, siteRow, reportType, options = {}) {