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

.npmignore can contain src/ #5

Open
chrismcleod opened this issue Jul 20, 2018 · 3 comments
Open

.npmignore can contain src/ #5

chrismcleod opened this issue Jul 20, 2018 · 3 comments

Comments

@chrismcleod
Copy link

Ignoring the src folder in .npmignore reduces package size.

Someone at MS knows haha: https://github.com/Microsoft/TypeScript/blob/master/.npmignore

@luisfarzati
Copy link

tsconfig.json as well, for that matter :)

@Izhaki
Copy link

Izhaki commented Dec 27, 2018

Depending on the build, sometimes source-maps reference the source files, and unless you publish /src these will not work.

@zackkrida
Copy link

Yeah just chiming in here, for most libs it's best-practice to ship source code to npm too. If your codebase is massive, like Microsoft/TypeScript likely is, I can see why you'd want to avoid it.

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

4 participants