Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore 的冲突问题 #26

Closed
popomore opened this issue Dec 18, 2014 · 3 comments · Fixed by #27
Closed

ignore 的冲突问题 #26

popomore opened this issue Dec 18, 2014 · 3 comments · Fixed by #27
Labels

Comments

@popomore
Copy link
Member

.gitignore 中配置了 lib,因为 lib 目录是代码生成的

.npmignore 未配置 lib,因为这个代码是被最终依赖的代码,所以 npm publish 会带上 lib

但是现在 spm 会读取所有的 ignore 文件进行忽略,这样就会有问题

@popomore popomore added the bug label Dec 18, 2014
@sorrycc
Copy link
Member

sorrycc commented Dec 18, 2014

应该是要只读 .spmignore 和 spm.ignore 吧?

@sorrycc
Copy link
Member

sorrycc commented Dec 19, 2014

https://github.com/npm/fstream-npm/blob/master/fstream-npm.js#L168-L182

.npmignore 后就不读 .gitignore 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants