mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
23 lines
565 B
Bash
Executable File
23 lines
565 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script will remove all node_modules folders in the monorepo.
|
|
echo "Removing all node_modules folders..."
|
|
|
|
# Loop through each package in the "./apps" directory
|
|
for app in ./apps/*; do
|
|
if [[ -d "$app" ]]; then
|
|
# Remove the node_modules folder
|
|
rm -rf "$app/node_modules"
|
|
fi
|
|
done
|
|
|
|
# Loop through each package in the "./packages" directory
|
|
for package in ./packages/*; do
|
|
if [[ -d "$package" ]]; then
|
|
# Remove the node_modules folder
|
|
rm -rf "$package/node_modules"
|
|
fi
|
|
done
|
|
|
|
echo "All node_modules folders have been removed."
|