File create-package-lock.sh of Package bitwarden
#!/bin/sh
# dnf install curl gzip jq npm16 patch tar wget
version=2022.6.0
wget -nc https://github.com/bitwarden/clients/archive/web-v${version}.tar.gz
rm -rf -- clients-web-v${version}
tar --gzip -xvf web-v${version}.tar.gz
cd clients-web-v${version}
#These patches touch NPM's files
patch --verbose -p1 < ../remove-unnecessary-deps.patch
npm16 install ./apps/desktop/src --save-dev --package-lock-only
#obs do not allow git access over ssh
sed -i 's/git+ssh/git+https/g' package-lock.json
mv -vf package-lock.json ../