nocobase2/generate-npmignore.sh

24 lines
326 B
Bash
Raw Permalink 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
2024-09-24 09:50:20 +08:00
CONTENT="/node_modules
/docker
/docs
"
2024-05-07 16:44:42 +08:00
else
CONTENT="/node_modules
2024-09-24 09:25:10 +08:00
/docker
/docs
/src
/dist/node_modules/external-db-data-source/src"
2024-05-07 16:44:42 +08:00
fi
echo $CONTENT
for FILE in $FILES
do
echo "$CONTENT" > $FILE
done