Commit a3ae8a5
committed
fix(publish): keep .git out of the published package
`.gitignore` starts with `.*` and then `!.git*` so that .gitignore, .github and
.gitattributes stay tracked. moon publish reads the same file, and that negation was
enough to pull the entire .git directory into the tarball — object database, index
and reflogs included, which is the whole repository history. moonasgi shipped 303
entries, 224 of them .git; moonorm shipped 850.
A .moonignore now scopes this to publishing: .git/ and the build directories are
excluded there, and .gitignore keeps doing its job for git. It needs its own
negation to be tracked, for the same reason .git* does.
Signed-off-by: Leo Cheng (heke1228) <chengkelfan@qq.com>1 parent 1fdac78 commit a3ae8a5
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments