MCPcopy Create free account
hub / github.com/ShipSecAI/studio / resolveSwcBinaryPath

Function resolveSwcBinaryPath

pm2.config.cjs:147–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147function resolveSwcBinaryPath() {
148 const targets = getSwcTargets();
149 for (const target of targets) {
150 const candidates = collectCandidatePaths(target);
151 for (const candidate of candidates) {
152 if (fs.existsSync(candidate)) {
153 return candidate;
154 }
155 }
156 }
157 return undefined;
158}
159
160const swcBinaryPath = resolveSwcBinaryPath();
161if (!swcBinaryPath) {

Callers 1

pm2.config.cjsFile · 0.85

Calls 2

getSwcTargetsFunction · 0.85
collectCandidatePathsFunction · 0.85

Tested by

no test coverage detected