Winston: Large 'scratch' folder being distributed

Created on 9 Jul 2018  路  9Comments  路  Source: winstonjs/winston

Please tell us about your environment:

  • _winston version?_

    • [x] winston@2

    • [x] winston@3

  • _node -v outputs:_ v8.10.0
  • _Operating System?_ macOS
  • _Language?_ (all)

What is the problem?

npm install winston
du -sh node_modules/winston/*

This includes a scratch folder that is quite large (17MB) for 2.x. I think it just needs to be added to .npmignore, but it wasn't obvious to me how it was being generated or what the contents are supposed to be.

winston@3 has a small scratch folder, but maybe it's just a matter of a CI system accumulating a bunch of builds in a workspace over time?

I also noticed that some of the files intest are specifically not .npmignored, I'm curious if there's a reason why? The commits don't really explain why. Obviously those files are super small and not really significant, I'm just wondering.

Most helpful comment

Thanks for pointing this out. I'm not sure about those test files (@indexzero ?) but I added scratch to .npmignore on 2.x and 3.x, so next time @indexzero pushes a release (?), hopefully this will be resolved (definitely let us know if it's still being distributed). Thanks!

All 9 comments

Thanks for pointing this out. I'm not sure about those test files (@indexzero ?) but I added scratch to .npmignore on 2.x and 3.x, so next time @indexzero pushes a release (?), hopefully this will be resolved (definitely let us know if it's still being distributed). Thanks!

winston 2.x like:

image

I noticed this myself the other day 鈥撀燽een afk for most of July. Yay vacations. Need to add scratch to .npmignore.

@indexzero any chance this can be backported to the 2.x.x as a patch? 馃檹

image

And thanks for the fix @DABH !

Yes it needs to be. Will make that happen now.

Released in 2.4.4

Thanks, @indexzero !

For those curious scratch/** is where I started keeping samples / scratch pad space when I am attempting to reproduce / investigate Github issues for winston.

It was added to .gitignore, but I neglected to add it to .npmignore which was the source of the bug.

Was this page helpful?
0 / 5 - 0 ratings