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

.idea packed into npm package #2

Closed
cdrani opened this issue Mar 31, 2019 · 2 comments
Closed

.idea packed into npm package #2

cdrani opened this issue Mar 31, 2019 · 2 comments

Comments

@cdrani
Copy link

cdrani commented Mar 31, 2019

.idea folder is included in your npm package. Ideally the package should be as light as possible, and in this case only include the necessary files like index.js, readme, license, and package.json.

Fix is to add a fields key to package.json with the files you want to include in the package. license, readme, and package.json are included by default.

"files": ["index.js"]
@ilicmarko
Copy link
Owner

I was thinking of removing the .idea folder all together but I can use files or even better .npmignore.

Will add.

@ilicmarko ilicmarko reopened this Apr 8, 2019
@cdrani
Copy link
Author

cdrani commented Apr 8, 2019

I think the files field is a better option than .npmignore in this case. Otherwise you'll have to include everything you included in the .gitignore file in the .npmignore file as well.

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

2 participants