MCPcopy Create free account
hub / github.com/auth0/auth0-cli / isExpoProject

Function isExpoProject

internal/cli/quickstart_detect.go:352–363  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

350}
351
352func isExpoProject(dir string) bool {
353 data, err := os.ReadFile(filepath.Join(dir, "app.json"))
354 if err != nil {
355 return false
356 }
357 var obj map[string]json.RawMessage
358 if err := json.Unmarshal(data, &obj); err != nil {
359 return false
360 }
361 _, hasExpoKey := obj["expo"]
362 return hasExpoKey
363}
364
365// pubspecHasFlutterWebTarget returns true if "web:" is nested under "flutter:" in pubspec.yaml.
366func pubspecHasFlutterWebTarget(data string) bool {

Callers 1

DetectProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected