Файли блокування Git
Файли блокувань гілок Git дозволяють вам повністю уникнути конфліктів злиття файлів блокувань і вирішити їх пізніше.
Використання файлів блокування Git
You can turn on this feature by configuring the .npmrc file.
git-branch-lockfile=true
При цьому ім’я файлу блокування буде згенеровано на основі поточної назви гілки.
For instance, the current branch name is feature-1. Then, the generated lockfile name will
be pnpm-lock.feature-1.yaml. Ви можете зафіксувати його в Git, а пізніше об’єднати всі файли блокування гілок git.
- <project_folder>
|- pnpm-lock.yaml
|- pnpm-lock.feature-1.yaml
|- pnpm-lock.<branch_name>.yaml
примітка
feature/1 is special in that the / is automatically converted to !, so the corresponding
lockfile name would be pnpm-lock.feature!1.yaml.