Fix problem with generated NPM packages

This commit is contained in:
Grahame Grieve 2022-03-31 07:17:00 +11:00
parent 90e34f89ff
commit d2ebb37e9b
1 changed files with 5 additions and 1 deletions

View File

@ -258,7 +258,11 @@ public class NPMPackageGenerator {
packageManifest = new JsonObject();
packageManifest.addProperty("version", ig.getVersion());
packageManifest.addProperty("fhirVersion", fhirVersion.toString());
JsonArray fv = new JsonArray();
for (String v : fhirVersion) {
fv.add(v);
}
packageManifest.add("fhirVersion", fv);
packageManifest.addProperty("date", dt);
packageManifest.addProperty("name", ig.getPackageId());