( packageCache: PackageCache, pkgPath: string, )
| 49 | } |
| 50 | |
| 51 | function invalidatePackageData( |
| 52 | packageCache: PackageCache, |
| 53 | pkgPath: string, |
| 54 | ): void { |
| 55 | const pkgDir = normalizePath(path.dirname(pkgPath)) |
| 56 | packageCache.forEach((pkg, cacheKey) => { |
| 57 | if (pkg.dir === pkgDir) { |
| 58 | packageCache.delete(cacheKey) |
| 59 | } |
| 60 | }) |
| 61 | } |
| 62 | |
| 63 | export function resolvePackageData( |
| 64 | pkgName: string, |
no test coverage detected