Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 1.27 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.27 KB

lockfile-shaker-strapi

NPM Version Monthly download on NPM Snyk Vulnerabilities GitHub last commit

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.

Installation

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')\""
  }
}