Ubuntu – How to add dependencies into package.json with jq
I want to add package dependencies to the package.json file by bash script using jq. Add new element to existing JSON array with jq Here is the test script with 5 steps: #!/bin/bash add_element_with_jq() { # step 1: Add a…