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

Function getRepoRoot

docs/scripts/generate-cli-docs.mjs:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { spawn } from 'node:child_process';
6
7function getRepoRoot() {
8 const __filename = fileURLToPath(import.meta.url);
9 const __dirname = path.dirname(__filename);
10 return path.resolve(__dirname, '../..');
11}
12
13function runCargoAndAppend({ cwd, outFilePath }) {
14 return new Promise((resolve, reject) => {

Callers 1

mainFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…