1.0.0 • Published 7 years ago
serverless-exclude-dev-deps v1.0.0
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
1.0.0
7 years ago