eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
755 stars 134 forks source link

Publish only required files #141

Closed MarkHerhold closed 7 years ago

MarkHerhold commented 7 years ago

This PR removes unnecessary files (test, examples) when publishing to npm. Please see the npm docs on the files key in package.json.

To see how this will be packaged without publishing, run:

npm pack
# produces node-mocks-http-1.6.2.tgz

Files that will be published with this PR:

./HISTORY.md
./lib
./lib/express
./lib/express/mock-application.js
./lib/express/mock-express.js
./lib/express/mock-request.js
./lib/express/utils
./lib/express/utils/define-getter.js
./lib/http-mock.js
./lib/index.d.ts
./lib/mockEventEmitter.js
./lib/mockRequest.js
./lib/mockResponse.js
./lib/mockWritableStream.js
./lib/node
./lib/node/_http_incoming.js
./lib/node/_http_server.js
./lib/node/http.js
./LICENSE
./package.json
./README.md

Thanks for the awesome library!

howardabrams commented 7 years ago

Thank you. A nice improvement.