3 ms·
If package.json is already in JSON format, why not use the same for yarn.lock? Honest question, there must be a good reason.
by juancampa 8y ago
If package.json is already in JSON format, why not use the same for yarn.lock? Honest question, there must be a good reason.
- arcatek 8y agoWe want the lockfile to be easy to review by humans. In our experience, JSON doesn't quite fit the bill once you reach a critical mass of data. Our lockfile format worked fine for the past three years (bar the unfortunate YAML incompatibilities that we're about to fix). Don't fix what isn't broken :)
- slobotron 8y agoToo bad it's not package.yaml or package.js so that we can include comments and document our dependencies....