MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / referencesScriptsDir

Function referencesScriptsDir

apps/ui/scripts/check-scripts-docs.ts:11–13  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

9const SKIP_SCRIPT_KEYS = new Set(["prepare"]);
10
11function referencesScriptsDir(value: string): boolean {
12 return /(?:^|[&|;]\s*|\s)(?:\.\/)?scripts\//u.test(value);
13}
14
15function isRecord(value: unknown): value is Record<string, unknown> {
16 return typeof value === "object" && value !== null;

Callers 1

readPackageScriptKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected