MCPcopy Create free account
hub / github.com/dailydotdev/apps / scaffoldOverride

Function scaffoldOverride

packages/world-cli/bin/world.js:199–208  ·  view source on GitHub ↗
(file, realm, family)

Source from the content-addressed store, hash-verified

197}
198
199async function scaffoldOverride(file, realm, family) {
200 if (await exists(file)) return "already exists";
201 const source = (await builderSource(realm, family)).replace(
202 `export function ${family}`,
203 "export default function build"
204 );
205 await mkdir(dirname(file), { recursive: true });
206 await writeFile(file, source);
207 return "created";
208}
209
210async function runInspect() {
211 const handle = positional[0] ?? process.env.WORLD_USER;

Callers 1

runCreateFunction · 0.85

Calls 3

builderSourceFunction · 0.85
replaceMethod · 0.80
existsFunction · 0.70

Tested by

no test coverage detected