MCPcopy Create free account
hub / github.com/SethGammon/Citadel / readPackageScripts

Function readPackageScripts

core/verification/profiles.js:15–24  ·  view source on GitHub ↗
(projectRoot)

Source from the content-addressed store, hash-verified

13}
14
15function readPackageScripts(projectRoot) {
16 try {
17 const packagePath = path.join(projectRoot, 'package.json');
18 const raw = fs.readFileSync(packagePath, 'utf8').replace(/^\uFEFF/, '');
19 const parsed = JSON.parse(raw);
20 return parsed.scripts || {};
21 } catch {
22 return {};
23 }
24}
25
26function runGit(projectRoot, args) {
27 const result = spawnSync('git', args, {

Callers 3

checkVerifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected