MCPcopy Index your code
hub / github.com/ionic-team/capacitor / detectFramework

Function detectFramework

cli/src/framework-configs.ts:84–91  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

82];
83
84export function detectFramework(config: Config): FrameworkConfig | undefined {
85 const frameworks = FRAMEWORK_CONFIGS.filter((f) => f.isMatch(config)).sort((a, b) => {
86 if (a.priority < b.priority) return -1;
87 if (a.priority > b.priority) return 1;
88 return 0;
89 });
90 return frameworks[0];
91}
92
93function hasDependency(config: Config, depName: string): boolean {
94 const deps = getDependencies(config);

Callers 2

getWebDirFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected