Skip to content

Commit 140a3a4

Browse files
committed
chore: add generate-npmignore.sh
1 parent 2ec128c commit 140a3a4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

generate-npmignore.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
FILES=$(find packages/pro-plugins/@nocobase -name .npmignore)
4+
5+
if [ "$1" == "ignore-src" ]; then
6+
CONTENT="/node_modules"
7+
else
8+
CONTENT="/node_modules
9+
/src"
10+
fi
11+
12+
echo $CONTENT
13+
14+
for FILE in $FILES
15+
do
16+
echo "$CONTENT" > $FILE
17+
done

0 commit comments

Comments
 (0)