utils/package_scanner library

Classes

PackageInfo
Package info from package_config.json
SlangPackageInfo
Slang package with import path

Functions

discoverSlangPackages(String projectPath) Future<List<SlangPackageInfo>>
Scan all packages and return only those with slang implementations Returns packages sorted with main package first, then dependencies
findStringsFile(String packagePath, String packageName) Future<String?>
Find slang generated file in a package Returns import path (e.g., 'package:pkg_a/i18n/translations.g.dart') or null
getPackageConfig(String projectPath) Future<List<PackageInfo>>
Read package_config.json and return all package entries
hasSlangSupport(String packagePath) Future<bool>
Check if a package has slang support Returns true if slang.yaml exists OR slang/slang_flutter is in dependencies