-
-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
Please provide an example for JSON object assignment. Something equivalent to this:
npx jq '.scripts.build = "sass --load-path=./scss ./scss/style.scss:./css/style.css"' package.json
That is to add a value to json like this:
{
"name": "some-library",
"version": "1.0.0",
"scripts": {
"test": "some test"
},
}And turn it into this:
{
"name": "some-library",
"version": "1.0.0",
"scripts": {
"build": "sass --load-path=./scss ./scss/style.scss:./css/style.css",
"test": "some test"
},
}
There is no example or guide how to reference a value in the existing JSON object input. Would really know how to do it. Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels