fix bug loading packages
This commit is contained in:
parent
70c75fde62
commit
d7788c7945
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue