Skip to content

Commit

Permalink
Merge pull request #48 from hd-gmbh-dev/47-add-codelistsjson-to-npm-p…
Browse files Browse the repository at this point in the history
…ackage

added codelist.json to pkg
  • Loading branch information
jueseitz authored Nov 23, 2024
2 parents af706b2 + 902cb96 commit 8081752
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
run: |
wasm-pack build --release --target nodejs --reference-types --features wasm,builder --no-default-features
cp target/schemas/out/*.xsdb pkg/xwasser-v070.xsdb.bin
cp crates/codelists/public/V0_7_0/codelist.json pkg/codelist.json
cp package.tmp.json pkg/package.json
pnpm tsup --format esm,cjs
- name: Test WASM
Expand All @@ -52,6 +53,7 @@ jobs:
run: |
wasm-pack build --release --target web --reference-types --features wasm,builder --no-default-features
cp target/schemas/out/*.xsdb pkg/xwasser-v070.xsdb.bin
cp crates/codelists/public/V0_7_0/codelist.json pkg/codelist.json
cp package.tmp.web.json pkg/package.json
- name: Build utils web package
run: pnpm tsup --format esm,cjs
Expand Down
1 change: 1 addition & 0 deletions build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e
# cargo clean
wasm-pack build --release --target web --reference-types --features wasm,builder --no-default-features
cp crates/codelists/public/V0_7_0/codelist.json pkg/codelist.json
cp target/schemas/out/*.xsdb pkg/xwasser-v070.xsdb.bin
cp package.tmp.web.json pkg/package.json
pnpm tsup --format esm,cjs
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cargo clean
cargo test --no-default-features --features schema,trace,builder
wasm-pack build --release --target nodejs --reference-types --features wasm,builder --no-default-features
# wasm-pack build --release --target web --reference-types --features wasm --no-default-features
cp crates/codelists/public/V0_7_0/codelist.json pkg/codelist.json
cp target/schemas/out/*.xsdb pkg/xwasser-v070.xsdb.bin
#cp package.tmp.web.json pkg/package.json
cp package.tmp.json pkg/package.json
Expand Down
1 change: 1 addition & 0 deletions package.tmp.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"xoev_xwasser_bg.wasm.d.ts",
"xoev_xwasser.d.ts",
"xoev_xwasser.js",
"codelist.json",
"xwasser-v070.xsdb.bin",
"xoev-xwasser-utils.cjs",
"xoev-xwasser-utils.cjs.map",
Expand Down
1 change: 1 addition & 0 deletions package.tmp.web.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"xoev_xwasser_bg.wasm.d.ts",
"xoev_xwasser.js",
"xoev_xwasser.d.ts",
"codelist.json",
"xwasser-v070.xsdb.bin",
"xoev-xwasser-utils.cjs",
"xoev-xwasser-utils.cjs.map",
Expand Down

0 comments on commit 8081752

Please sign in to comment.