mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
815 B
815 B
Read this on the main serverless docs site
Custom scripts
Custom scripts in the pipeline are supported using the standard scripts in the package.json file.
For example, you can run scripts before/after install, and before/after a test.
{
'name': 'demo-serverless',
'version': '1.0.0',
'scripts': { 'preinstall': '', 'postinstall': '', 'pretest': '', 'posttest': '' },
}
Additional lifecycle hooks can be found in the npm documentation: