nocobase2/generate-npmignore.sh

18 lines
250 B
Bash
Raw Normal View History

2024-05-07 16:44:42 +08:00
#!/bin/bash
FILES=$(find packages/pro-plugins/@nocobase -name .npmignore)
if [ "$1" == "ignore-src" ]; then
CONTENT="/node_modules"
else
CONTENT="/node_modules
/src"
fi
echo $CONTENT
for FILE in $FILES
do
echo "$CONTENT" > $FILE
done