There are two kinds of dependency definitions in this theme:
package.jsoncontains the base dependencies for this theme. They are broken down into a few categories like
devDependencies. It is edited by the maintainers.
package-lock.jsoncontains the complete frozen dependency chain for this theme, including all sub-dependencies of our base dependencies. It is automatically generated.
To update or add a JS dependency, follow these steps:
package.jsonby adding or modifying a dependency.
package-lock.jsonin order to create a new set of frozen dependencies for the theme. To do this, run the following command from the Sphinx Theme Builder.
stb npm install --include=dev
Commit both files to the repository. When new people pull in the latest commits, their
npmenvironment will automatically update according to the new lockfile.