-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why yarn.lock not use JSON file? #2250
Comments
we want to pasrs yarn.lock , to edit some filed. istanbul@^0.4.0: ==> |
It's YAML (https://en.wikipedia.org/wiki/YAML) but you shouldn't edit yarn.lock manually anyway. |
@mcharytoniuk thanks for help. |
it's not yaml, unfortunately. I am curious about why you didn't pick a standard format, as would make parsing it much easier. our use case is that we are gathering a list of dependencies for our systems, and the script is not written in javascript, so relying on json or yaml would be much better :) |
@itajaja You can parse them using this lib: https://github.com/yarnpkg/yarn/tree/master/packages/lockfile |
as I stated, the script is not written in javascript (it gathers dependencies from multiple systems/languages). it just seems a reasonable choice to use an established format, so I am curios why that wasn't the case for yarn. especially considered that the file is "almost" yaml, why not support it entirely? |
I want to reiterate the importance of the above point. There are a number of real use cases where it's important to e.g. gather dependencies across an entire deployed project, such as when regulatory concerns exist. It would be great, then, if there were a better way than the above to figure out what's in a Yarn lockfile, when using something other than Node as our scripting language. |
Hello:
why yarn.lock not use JSON file?
The text was updated successfully, but these errors were encountered: