MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / findInBuild

Function findInBuild

docs/scripts/generate-llms.mjs:17–26  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

15const STATIC_DIR = path.resolve(__dirname, '../static');
16
17async function findInBuild(filename) {
18 for (const candidate of [filename, `docs/${filename}`]) {
19 const p = path.join(BUILD_DIR, candidate);
20 try {
21 await fs.access(p);
22 return p;
23 } catch {}
24 }
25 return null;
26}
27
28async function main() {
29 const src = await findInBuild('llms.txt');

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…