Skip to content

Commit ec6d3b8

Browse files
committed
refactor(installer): Use npm --silent for quieter installs/builds
1 parent 17d4544 commit ec6d3b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/install-pulse.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,15 +738,15 @@ perform_update() {
738738
fi
739739

740740
print_info "Installing NPM dependencies in $PULSE_DIR (root project directory)..."
741-
if npm install --unsafe-perm > /dev/null; then # Redirect stdout
741+
if npm install --unsafe-perm --silent; then # Use npm's silent flag
742742
print_success "NPM dependencies installed successfully in $PULSE_DIR."
743743
else
744744
print_error "Failed to install NPM dependencies in $PULSE_DIR. See npm output above."
745745
exit 1
746746
fi
747747

748748
print_info "Building CSS assets in $PULSE_DIR..."
749-
if npm run build:css > /dev/null; then # Redirect stdout
749+
if npm run build:css --silent; then # Use npm's silent flag
750750
print_success "CSS assets built successfully."
751751
else
752752
print_error "Failed to build CSS assets. See npm output above."
@@ -1460,15 +1460,15 @@ case "$INSTALL_MODE" in
14601460
# Install NPM dependencies (root and server, now consolidated) in PULSE_DIR
14611461
print_info "Installing NPM dependencies in $PULSE_DIR..."
14621462
cd "$PULSE_DIR" || { print_error "Failed to cd to $PULSE_DIR before npm install"; exit 1; }
1463-
if ! npm install --unsafe-perm > /dev/null; then # Redirect stdout
1463+
if ! npm install --unsafe-perm --silent; then # Use npm's silent flag
14641464
print_error "Failed to install NPM dependencies. See output above."
14651465
exit 1
14661466
else
14671467
print_success "NPM dependencies installed."
14681468
fi
14691469

14701470
print_info "Building CSS assets in $PULSE_DIR..."
1471-
if ! npm run build:css > /dev/null; then # Redirect stdout
1471+
if ! npm run build:css --silent; then # Use npm's silent flag
14721472
print_error "Failed to build CSS assets. See output above."
14731473
exit 1 # This should be a fatal error for a fresh install
14741474
else

0 commit comments

Comments
 (0)