diff --git a/package-lock.json b/package-lock.json index d51c73f..fb2d4b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "health-cards-dev-tools", "version": "1.3.0-2", + "hasInstallScript": true, "license": "MIT", "dependencies": { "@fidm/x509": "^1.2.1", @@ -4463,13 +4464,10 @@ "dev": true }, "node_modules/json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, "bin": { "json5": "lib/cli.js" }, @@ -9975,13 +9973,10 @@ "dev": true }, "json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true }, "jsqr": { "version": "1.4.0", diff --git a/package.json b/package.json index 861252b..9637d7e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "update-validator": "git pull && npm install && npm run build", "lint": "eslint --config .eslintrc.json --ext .ts ./src ./tests", "prune-fhir-schema": "ts-node --files src/prune-fhir-schema.ts", - "shl-server": "cd ./shl-server && node ./src/server.js" + "shl-server": "cd ./shl-server && node ./src/server.js", + "postinstall": "cd ./shl-server && npm install && tsc" }, "bin": { "shc-validator": "js/src/shc-validator.js" diff --git a/shl-server/tsconfig.json b/shl-server/tsconfig.json index c4c8450..473e0fe 100644 --- a/shl-server/tsconfig.json +++ b/shl-server/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "Node16", /* Specify what module code is generated. */ + "module": "CommonJS", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */