Advertisement
Justman10000

Use sort-json-keys

Sep 17th, 2023 (edited)
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. // You need NodeJS (https://pastebin.com/Rf1vVKsR)
  2.  
  3. yarn add sort-json-keys
  4.  
  5. # Replace PATH withe destination of the JSON files
  6. for file in $(ls PATH)
  7. do
  8. yarn sort-json-keys $file
  9. done
  10.  
  11. # Wenn vorher keine package.json existiere
  12. rm -r package.json yarn.lock node_modules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement