nocobase/generate-npmignore.sh

23 lines
279 B
Bash
Raw Permalink Normal View History

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