docs: document scoped script helpers

This commit is contained in:
Peter Steinberger
2026-06-04 23:57:22 -04:00
parent a59eba3ee1
commit 613a2835cb
12 changed files with 36 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Filters staged file paths for pre-commit lint/format hooks.
import path from "node:path";
/**

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env node
// Production dependency audit helper using pnpm lock data and npm bulk advisories.
import { readFile } from "node:fs/promises";
import path from "node:path";
import process from "node:process";
@@ -8,6 +9,7 @@ import { pathToFileURL } from "node:url";
const DEFAULT_REGISTRY = "https://registry.npmjs.org";
const BULK_ADVISORY_PATH = "/-/npm/v1/security/advisories/bulk";
const MIN_SEVERITY = "high";
/** Maximum advisory error body characters retained in messages. */
export const BULK_ADVISORY_ERROR_BODY_MAX_CHARS = 4096;
export const BULK_ADVISORY_RESPONSE_BODY_MAX_BYTES = 8 * 1024 * 1024;
export const BULK_ADVISORY_REQUEST_TIMEOUT_MS = 60_000;