mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-05 13:47:45 +08:00
24 lines
326 B
Bash
Executable File
24 lines
326 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILES=$(find packages/pro-plugins/@nocobase -name .npmignore)
|
|
|
|
if [ "$1" == "ignore-src" ]; then
|
|
CONTENT="/node_modules
|
|
/docker
|
|
/docs
|
|
"
|
|
else
|
|
CONTENT="/node_modules
|
|
/docker
|
|
/docs
|
|
/src
|
|
/dist/node_modules/external-db-data-source/src"
|
|
fi
|
|
|
|
echo $CONTENT
|
|
|
|
for FILE in $FILES
|
|
do
|
|
echo "$CONTENT" > $FILE
|
|
done
|