docs(manual): Adjust instructions to use only pinned dependencies

This patch adds `--frozen-lockfile` to our regular `yarn install` calls
during manual set up. This should ensure people get the expected
versions and not any newer or older versions that might behave
unexpectedly.

References:
https://github.com/yarnpkg/yarn/issues/5847#issuecomment-537521943
https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath
2022-04-12 04:24:27 +02:00
parent 7f09558b58
commit 3d7bf464d9
2 changed files with 4 additions and 4 deletions

View File

@@ -47,10 +47,10 @@ if [ ! -f config.json ]; then
fi
echo "Installing packages..."
yarn install --production=true --pure-lockfile
yarn install --production=true --frozen-lockfile
cat << EOF
If you want to build the frontend yourself, you need to run 'yarn install' before 'yarn build' to install the devDependencies for the build process.
If you want to build the frontend yourself, you need to run 'yarn install --frozen-lockfile' before 'yarn build' to install the devDependencies for the build process.
Edit the following config file to setup HedgeDoc server and client.
Read more info at https://docs.hedgedoc.org/configuration/