mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-30 03:08:31 +08:00
18 lines
250 B
Bash
Executable File
18 lines
250 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
|
|
/src"
|
|
fi
|
|
|
|
echo $CONTENT
|
|
|
|
for FILE in $FILES
|
|
do
|
|
echo "$CONTENT" > $FILE
|
|
done
|