Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
501 stars 44 forks source link

Version control issues with yarn.lock files #292

Closed sylee957 closed 10 months ago

sylee957 commented 10 months ago

I encounter some huge diff generated by using npm install, and it is problemantic in my development workflow.

git diff
diff --git a/yarn.lock b/yarn.lock
index ef96373d..f3c0dcef 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4,7 +4,7 @@

 "@ampproject/remapping@^2.2.0":
   version "2.2.1"
-  resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630"
+  resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz"
   integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==
   dependencies:
     "@jridgewell/gen-mapping" "^0.3.0"
@@ -12,19 +12,19 @@

 "@babel/code-frame@^7.22.5":
   version "7.22.5"
-  resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.5.tgz#234d98e1551960604f1246e6475891a570ad5658"
+  resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz"
   integrity sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==
   dependencies:

Maybe the committed lock file is generated differently than my environment. But I have other questions like should we really need to support two package managers in development workflow, or should we need yarn.lock file anyway, because there is already package-lock present.