Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions bin/npm-check-updates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#
# Applies all MINOR updates to all `package.json` files using `ncu -u -t minor`
# in the repository and updates
# the `package-lock.json` using `npm i`

pkgs=$(find . -type f -name package-lock.json)
for pkg in $pkgs
do
dir=$(dirname $pkg);
cd $dir;
ncu -u -t minor;
npm i;
done
Loading