test(coupling-audit): allowlist dual-runtime spawn shims

This commit is contained in:
YeonGyu-Kim
2026-05-21 12:16:54 +09:00
parent 2f26f78f0d
commit f6a2ff3541
+2 -2
View File
@@ -4,10 +4,10 @@ import path from "node:path"
const WORKSPACE_ROOT = path.resolve(import.meta.dir, "../..") const WORKSPACE_ROOT = path.resolve(import.meta.dir, "../..")
const PACKAGES_DIR = path.join(WORKSPACE_ROOT, "packages") const PACKAGES_DIR = path.join(WORKSPACE_ROOT, "packages")
const SKIP_PACKAGES = new Set(["ast-grep-mcp", "lsp-tools-mcp"]) const SKIP_PACKAGES = new Set(["lsp-tools-mcp"])
const OPENCODE_IMPORT_RE = /from\s+['"](@opencode-ai\/[^'"]+|opencode\/[^'"]+)['"]/ const OPENCODE_IMPORT_RE = /from\s+['"](@opencode-ai\/[^'"]+|opencode\/[^'"]+)['"]/
const BUN_API_RE = /\bBun\.(spawn|file|write|which|hash)\b/ const BUN_API_RE = /(?<!runtime\.)\bBun\.(spawn|file|write|which|hash)\b/
async function listPackageSourceFiles(): Promise<string[]> { async function listPackageSourceFiles(): Promise<string[]> {
let packageNames: string[] = [] let packageNames: string[] = []