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

Function referencesScriptsDir

apps/api/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 readPackageScriptKeys(): string[] {
16 const parsed: unknown = JSON.parse(readFileSync(PACKAGE_JSON_PATH, "utf8"));

Callers 1

readPackageScriptKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected