From 99d225542a0f1a1f0f058045b08e39bf499ded6e Mon Sep 17 00:00:00 2001 From: "Mathias.Hensel" Date: Tue, 9 Jun 2026 10:49:57 +0200 Subject: [PATCH 1/2] externalized build:version script to make it compatible with Win --- bin/build-version.js | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 bin/build-version.js diff --git a/bin/build-version.js b/bin/build-version.js new file mode 100644 index 00000000..5a24e242 --- /dev/null +++ b/bin/build-version.js @@ -0,0 +1,7 @@ +const fs = require('fs'); +const packageJson = require('../package.json'); + +fs.writeFileSync('src/version.json', JSON.stringify({ + lformsVersion: packageJson.version +})); + diff --git a/package.json b/package.json index 00913498..b8a08d84 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "build:init": "npm run build:clean && shx mkdir -p dist/$npm_package_name && shx cp src/index.js dist && npm run build:version && npm run build:language", "build:prepare-zip": "node prepare-zip.js", "build:zip": "cd dist; shx mv $npm_package_name $npm_package_name-$npm_package_version; bestzip $npm_package_name-$npm_package_version.zip $npm_package_name-$npm_package_version/*; shx mv $npm_package_name-$npm_package_version $npm_package_name", - "build:version": "node -e 'require(\"fs\").writeFileSync(\"src/version.json\", JSON.stringify({lformsVersion: require(\"./package.json\").version}))'", + "build:version": "node bin/build-version.js", "build:language": "node bin/build-locale.js $npm_package_config_localeID", "test:fhir-unit": "karma start test/karma.conf.js", "test:ng-unit": "ng test --watch=false", From ce2937c0cc3555d6b1baf8f1211023b1b3ebb69c Mon Sep 17 00:00:00 2001 From: "Mathias.Hensel" Date: Tue, 9 Jun 2026 10:50:55 +0200 Subject: [PATCH 2/2] fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd9253d2..f7d16874 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ you don't accidentally add something that we are also working on. - Run `npm run build` to build the project and generate a production version of the js files, which are much smaller than the development version. It generates an ES2017 version of the js files under dist/lforms. For details on - the files to load, see ["Usng the LHC-Forms Web Component"](#using). + the files to load, see ["Using the LHC-Forms Web Component"](#using). The `dist` directory is deleted and recreated during the process. The build also concatenates all the js files (except for zone.min.js and the