From 05ea80f5d0e4ff617371e7114855378f1c0c16ef Mon Sep 17 00:00:00 2001 From: Rafly Maulana Date: Mon, 21 Nov 2022 00:29:27 +0700 Subject: [PATCH] Prevent another lockfile than package-lock.json (npm) from being created --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 13b8b195..e1c35863 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,10 @@ docker-compose.override.yml .idea .DS_Store + +# Prevent another lockfile than package-lock.json (npm) from being created +# If some case you are using pnpm or yarn, don't forget to generate npm lockfile +# before commiting your code by running: +# `npm i --package-lock-only` +pnpm-lock.yaml +yarn.lock