Gathering detailed insights and metrics for serverless-mono-plugin
Gathering detailed insights and metrics for serverless-mono-plugin
Gathering detailed insights and metrics for serverless-mono-plugin
Gathering detailed insights and metrics for serverless-mono-plugin
serverless-plugin-monorepo
Serverless plugin to allow use inside a JS monorepo
serverless-plugin-monorepo-npm-workspaces
serverless plugin to deploy npm workspaces monorepo applications
serverless-plugin-monorepo3
Serverless plugin to allow use inside a JS monorepo with pnpm, yarn
serverless-plugin-monorepo2
Serverless plugin to allow use inside a JS monorepo
A Serverless plugin that allows use of serverless in a JS mono repo.
npm install serverless-mono-plugin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (86.75%)
JavaScript (6.64%)
Shell (6.61%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MPL-2.0 License
170 Stars
51 Commits
34 Forks
5 Watchers
4 Branches
6 Contributors
Updated on Jun 30, 2025
Latest Version
0.9.0
Package Id
serverless-mono-plugin@0.9.0
Unpacked Size
24.69 kB
Size
8.65 kB
File Count
6
NPM Version
6.14.4
Node Version
12.16.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A Serverless plugin design to make it possible to use Serverless in a Javascript mono repo with hoisted dependencies, e.g. when using Yarn Workspaces.
This plugin alleviates the need to use nohoist functionality by creating symlinks to all declared dependencies. Development dependencies are deliberately NOT linked so these will not be packaged into the resulting archive.
Butterwire uses Yarn workspaces and we created this plugin to improve our development experience. Not using nohoist saves wasting disk space and also accidentally including development dependencies in our packaged functions.
Note, this package will only work on operating systems that support symbolic links!
yarn add --dev serverless-plugin-monorepo
# or using NPM
npm install --dev serverless-plugin-monorepo
Currently this plugin requires Node V8+. If there is interest in support older versions then trans-compilation with Babel could be added.
Add the plugin to your serverless.yml
file:
plugins:
- serverless-plugin-monorepo
The plugin listens for package lifecycle events. Prior to Serverless packaging
up the service, it will scan the package.json
file for dependencies and
ensure that all dependencies (including transitive dependencies) are symlinked in node_modules
.
Hence when Serverless creates the archive, it will follow the symlinks and all dependencies will be added as expected. Development/peer dependencies are ignored.
The plugin will run when you do:
sls deploy
)sls deploy -f
)sls offline [start]
)On Windows platforms only, the package will create junction links by default as these do not require administrative privileges on older versions of Windows.
You can set the linkType
setting to dir
to create symbolic links instead. This setting is directly passed to the fs.symlink function. It is ignored on non Windows platforms.
We welcome issue reports and pull requests!
There is a small run
script which will launch Node V8 in a Docker container which
you may find useful for development purposes.
Note we are using StandardJS and you can run
the lint tool via yarn lint
which will attempt to automatically issues like spacing etc.
Copyright Butterwire Limited 2018 - 2019
No vulnerabilities found.
Reason
no vulnerabilities detected
Reason
tokens are read-only in GitHub workflows
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
all dependencies are pinned
Details
Reason
update tool detected
Details
Reason
GitHub code reviews found for 15 commits out of the last 30 -- score normalized to 5
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
0 commit(s) out of 30 and 0 issue activity out of 23 found in the last 90 days -- score normalized to 0
Reason
no badge detected
Reason
security policy file not detected
Reason
project is not fuzzed
Score
Last Scanned on 2022-08-15
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More