MCPcopy Create free account
hub / github.com/remix-run/react-router / order

Function order

scripts/changes/add.ts:177–181  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

175 .filter((p): p is Package => p !== null)
176 .sort((a, b) => {
177 const order = (name: string) => {
178 if (name === "react-router") return 0;
179 if (name.startsWith("@react-router/")) return 1;
180 return 2;
181 };
182 const oa = order(a.name);
183 const ob = order(b.name);
184 if (oa !== ob) return oa - ob;

Callers 1

getPackagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected