pack-zip

0.2.2 • Public • Published

This package creates a .zip file containing your package and its dependencies.

It is designed to help you deploy NPM packages to AWS Lambda.

The .zip file will contain

  • All files not in node_modules
  • All files in node_modules that are part of a package listed in the dependencies field of your package.json
  • Files may be excluded by adding glob patterns to .packignore

Installation

npm install --save-dev pack-zip

Example

my-lambda is an npm package I want to run as an AWS Lambda Function.

Install pack-zip locally in my-lambda

npm install --save-dev pack-zip

Install any runtime dependencies of my-lambda.

npm install

Modify my-lambda/package.json:

"scripts": {
    "build-aws-resource": "pack-zip"
    ...
}

Create the .zip file containing my-lambda and its dependencies, ready to upload to AWS Lambda

npm run build-aws-resource

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    2,918
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    2,918
  • 0.2.1
    1
  • 0.1.0
    2
  • 0.0.1
    2

Package Sidebar

Install

npm i pack-zip

Weekly Downloads

1,141

Version

0.2.2

License

Apache-2.0

Last publish

Collaborators

  • merlin-taylor