We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd231a3 + 8d219e7 commit 4c3152bCopy full SHA for 4c3152b
1 file changed
.update.sh
@@ -273,6 +273,18 @@ update_yarn() {
273
yarn upgrade --latest
274
}
275
276
+# Function: update_node_pkgs
277
+# Description: Updates Node.js packages if the 'node' command is installed.
278
+update_node_pkgs() {
279
+ println "Updating Node Packages"
280
+ if ! check_command node; then
281
+ return
282
+ fi
283
+
284
+ update_npm
285
+ update_yarn
286
+}
287
288
# Function: update_cargo
289
# Description: Updates cargo packages if the 'cargo' command is installed.
290
update_cargo() {
@@ -436,7 +448,6 @@ if check_internet; then
436
448
update_brew
437
449
update_vscode_ext
438
450
update_gem
439
- update_npm
440
- update_yarn
451
+ update_node_pkgs
441
452
update_cargo
442
453
fi
0 commit comments