Skip to content

Commit bbdb2e9

Browse files
committed
chore(moonbase): keep the .git directory out of the published package.
Signed-off-by: Leo Cheng (heke1228) <chengkelfan@qq.com>
1 parent 9794ae4 commit bbdb2e9

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.*
22
!.git*
3+
!.moonignore
34
_build/
45
target/

.moonignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# What `moon publish` must leave out of the package. `.gitignore` keeps `!.git*`
2+
# so that .gitignore/.github/.gitattributes stay tracked, but that same negation
3+
# would otherwise pull the whole `.git` directory — object database included —
4+
# into the published tarball.
5+
.git/
6+
_build/
7+
target/

0 commit comments

Comments
 (0)