chore(build): add build script for custom registry

This commit is contained in:
Samuel 2024-12-25 18:05:23 +01:00
parent 5e354fc7ae
commit 911c8987b4

3
build.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
wasm-pack build --scope duskflower --release --target bundler
jq '. |= . + {"publishConfig": {"registry": "https://git.duskflower.dev/api/packages/duskflower/npm/"}}' pkg/package.json > pkg/package.json.tmp && mv pkg/package.json.tmp pkg/package.json