fix bug loading packages

This commit is contained in:
Grahame Grieve 2020-05-27 08:34:02 +10:00
parent 70c75fde62
commit d7788c7945
1 changed files with 3 additions and 0 deletions

View File

@ -576,6 +576,9 @@ public class NpmPackage {
public boolean hasFile(String folder, String file) throws IOException { public boolean hasFile(String folder, String file) throws IOException {
NpmPackageFolder f = folders.get(folder); NpmPackageFolder f = folders.get(folder);
if (f == null) {
f = folders.get(Utilities.path("package", folder));
}
return f != null && f.hasFile(file); return f != null && f.hasFile(file);
} }