From d7788c79457a269c0055bb6b17982e85924bfd1a Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 27 May 2020 08:34:02 +1000 Subject: [PATCH] fix bug loading packages --- .../src/main/java/org/hl7/fhir/utilities/cache/NpmPackage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/NpmPackage.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/NpmPackage.java index 8243a068e..de7ca2d2b 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/NpmPackage.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/NpmPackage.java @@ -576,6 +576,9 @@ public class NpmPackage { public boolean hasFile(String folder, String file) throws IOException { NpmPackageFolder f = folders.get(folder); + if (f == null) { + f = folders.get(Utilities.path("package", folder)); + } return f != null && f.hasFile(file); }