MCPcopy Create free account
hub / github.com/vercel/vercel / sortBuilders

Function sortBuilders

packages/cli/src/util/dev/server.ts:137–147  ·  view source on GitHub ↗
(buildA: Builder, buildB: Builder)

Source from the content-addressed store, hash-verified

135};
136
137function sortBuilders(buildA: Builder, buildB: Builder) {
138 if (buildA && buildA.use && isOfficialRuntime('static-build', buildA.use)) {
139 return 1;
140 }
141
142 if (buildB && buildB.use && isOfficialRuntime('static-build', buildB.use)) {
143 return -1;
144 }
145
146 return 0;
147}
148
149export class DevCommandExitError extends Error {
150 exitCode: number;

Callers 1

updateBuildMatchesMethod · 0.85

Calls 1

isOfficialRuntimeFunction · 0.90

Tested by

no test coverage detected