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

Add .npmignore files to exclude test and source files #37

Open
Satyam opened this issue Apr 11, 2018 · 0 comments
Open

Add .npmignore files to exclude test and source files #37

Satyam opened this issue Apr 11, 2018 · 0 comments

Comments

@Satyam
Copy link
Contributor

Satyam commented Apr 11, 2018

Currently all the test and source files are installed along the transpiled files in /lib, which is, I believe, all the developer needs.

Since the packages exist as separate entities in npm, I am not aware that the current root .npmignore has any effect at all. Npm searches for .npmignore files at the project root (in this case, each package root) and its subdirectories, but it does not search parent directories. This can be tested via npm pack. The command lerna exec npm pack will create tar-files in each package root to prove this.

As stated in this Lerna issue it is better to place .npmignore files in each package.

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

No branches or pull requests

1 participant