Plugin for lockfile-shaker
that provides configuration for Strapi serverless deployments.
This has only been tested for Strapi v3.6.10. Use at your own risk for other Strapi versions.
Install lockfile-shaker
and lockfile-shaker-strapi
(as a dev-dependency):
npm i -D lockfile-shaker lockfile-shaker-strapi
Add lockfile-shaker
to your postinstall script (this will execute lockfile-shaker
only on npm install
, not npm npm ci
):
{
"scripts" : {
"postinstall": "node -e \"(process.env.npm_command != 'ci') && require('lockfile-shaker/lib/bin.js')\""
}
}