Package a zip file for uploading to Lambda with all the required NPM dependencies, without deploying it anywhere. Works with any JavaScript Lambda project, not just Claudia-related deployments.
claudia pack {OPTIONS}
--output
: (optional) Output file path- Defaults to: File in the current directory named after the NPM package name and version
--force
: (optional) If set, existing output files will be overwritten- Defaults to: not set, so trying to write over an existing output file will result in an error
--source
: (optional) Directory with project files- Defaults to: current directory
--no-optional-dependencies
: (optional) Do not pack optional dependencies.--use-local-dependencies
: (optional) Do not install dependencies, use the local node_modules directory instead--npm-options
: (optional) Any additional options to pass on to NPM when installing packages. Check https://docs.npmjs.com/cli/install for more information- For example: --ignore-scripts
- Introduced in version: 5.0.0
--post-package-script
: (optional) the name of a NPM script to execute custom processing after claudia finished packaging your files. Note that development dependencies are not available at this point, but you can use npm uninstall to remove utility tools as part of this step.- For example: customNpmScript
- Introduced in version: 5.0.0