MCPcopy Create free account
hub / github.com/adobe/react-spectrum / writeIndexJson

Function writeIndexJson

packages/dev/s2-docs/scripts/generateAgentSkills.mjs:985–990  ·  view source on GitHub ↗
(wellKnownRoot, skills)

Source from the content-addressed store, hash-verified

983}
984
985function writeIndexJson(wellKnownRoot, skills) {
986 const indexPath = path.join(wellKnownRoot, 'index.json');
987 const payload = {skills};
988 fs.writeFileSync(indexPath, JSON.stringify(payload, null, 2) + '\n');
989 console.log(`Generated ${path.relative(REPO_ROOT, indexPath)}`);
990}
991
992/**
993 * Generate a single skill.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected