nocobase/generate-npmignore.sh
2024-09-24 09:25:10 +08:00

20 lines
264 B
Bash
Executable File

#!/bin/bash
FILES=$(find packages/pro-plugins/@nocobase -name .npmignore)
if [ "$1" == "ignore-src" ]; then
CONTENT="/node_modules"
else
CONTENT="/node_modules
/docker
/docs
/src"
fi
echo $CONTENT
for FILE in $FILES
do
echo "$CONTENT" > $FILE
done