fix(core): update

This commit is contained in:
2021-06-07 13:59:56 +02:00
parent 983a860e2f
commit 349360cdc6
4 changed files with 17126 additions and 3122 deletions

View File

@@ -90,7 +90,9 @@ export class NpmRegistry {
}
}
const fileResult = await npmPackage.getFileFromPackage(filePathArg, optionsArg);
this.registryCache.cacheSmartFile(cacheDescriptor, fileResult);
if (fileResult) {
this.registryCache.cacheSmartFile(cacheDescriptor, fileResult);
}
return fileResult;
} else {
return cachedFile;