File README.md of Package python-open-webui
# Steps to update version
## Generate the new package-lock.json from the source
1. Clone the *open-webui* repo. i.e. `git clone https://github.com/open-webui/open-webui`
2. Checkout the version tag. i.e. `cd open-webui & git checkout tags/v0.3.32 -b v0.3.32`
3. Generate new *package-lock.json*. i.e. `npm install --package-lock-only --ignore-scripts`
## Update OBS package
1. Fetch the new tarball. i.e. `py2pack fetch open-webui 0.3.32`
2. Replace the existing *package-lock.json* by copying newly generated one over from the source area.
3. Delete the existing *node_modules.obscpio* and *node_modules.spec.inc*. i.e. `rm -f node_modules.*`
4. Generate new *node_modules.obscpio* and *node_modules.spec.inc*. i.e. `osc service manualrun`
5. Delete the generated *node_modules.sums* file as it is not needed.
6. Update *python-open-webui.spec*.
7. Commit the changes.
## References
* [obs-service-node_modules](https://github.com/openSUSE/obs-service-node_modules)