mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
add an example oneliner
I stole this from @rrichardson's post on 8/16/20 and combined @jturner's suggestion.
This commit is contained in:
parent
2e7a39ed28
commit
6c7298dd0a
1 changed files with 2 additions and 0 deletions
2
cool_oneliners/npm_update_versions.nu
Normal file
2
cool_oneliners/npm_update_versions.nu
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Increment the minor version for any package.json in the current directory (eigenrick — 08/16/2020)
|
||||
ls */package.json | each { open $it.name | inc version --minor | to json --pretty 2 | save --raw }
|
Loading…
Add table
Add a link
Reference in a new issue