MCPcopy Create free account
hub / github.com/altic-dev/Pilot / detectBuildCommand

Function detectBuildCommand

src/lib/build-detector.ts:131–141  ·  view source on GitHub ↗

* Detect build command

(scripts?: Record<string, string>)

Source from the content-addressed store, hash-verified

129 * Detect build command
130 */
131function detectBuildCommand(scripts?: Record<string, string>): string | undefined {
132 if (!scripts) {
133 return undefined;
134 }
135
136 if (scripts.build) {
137 return 'build';
138 }
139
140 return undefined;
141}
142
143/**
144 * Auto-detect build configuration from package.json

Callers 1

detectBuildConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected