browserslist / update-db

CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
https://browsersl.ist/
MIT License
286 stars 57 forks source link

lost package-lock.json indentation #4

Closed alexanderanchishkin closed 1 year ago

alexanderanchishkin commented 1 year ago

Line of code: here You can see that 2-space-indentation is hardcoded for new package-lock.json file. Is it possible to detect package-lock.json indentation? And if no is it possible to make option "tabWidth" for set this value?

ai commented 1 year ago

It will be better to detect the origin indent from previous package-lock.json.

Can you send PR since i am locked on another open source project?

alexanderanchishkin commented 1 year ago

Yes I can. Thank you.

ai commented 1 year ago

Fixed in 1.0.6.