1.0.0 • Published 7 years ago

serverless-exclude-dev-deps v1.0.0

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
7 years ago

serverless-exclude-dev-deps

Exclude NodeJS development dependencies from serverless deployment packages.

Serverless can exclude development dependencies itself, but seems to only exlcude them at the top level as defined in your package.json file. This serverless plugin improves that behaviour by using the package-lock.json file to audit the entire dependency list.

It begins by exlcuding everything under the node_modules directory, and then selectively re-includes modules that have a falsey dev value.

Installation

Install the package via npm:

npm install --save-dev serverless-exclude-dev-deps

Include in your serverless.yml file under plugins:

plugins:
  - serverless-exclude-dev-deps