Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
cbumstead-serverless-plugin-tree-shake
Advanced tools
Shake the dependency tree and only include files needed
Shake the file dependency tree and only include files needed.
yarn add --dev serverless-plugin-tree-shake
npm install --save-dev serverless-plugin-tree-shake
plugins:
- serverless-plugin-tree-shake
package:
# no need to spend time excluding dev dependencies, given that
# serverless-plugin-tree-shake does it already
excludeDevDependencies: false
example output before (with excludeDevDependencies
enabled):
$ time sls package
33.93s user 20.17s system 82% cpu 1:05.94 total
$ tree
988 directories, 5978 files
example output after:
$ time sls package
3.77s user 1.27s system 51% cpu 9.724 total
$ tree
24 directories, 48 files
More details: BENCHMARK.md
.
This plugins supports typescript natively. It uses the installed typescript package, reads the appropriate config, and transpiles to js according to that config. You can see examples on the __fixtures__
that start with ts-
.
This plugins supports bundling functions individually
. Just use that option accordingly:
package:
individually: true
excludeDevDependencies: false
You can use the include
and exclude
global, and per-function, configurations and it will include/exclude the especified files/patterns.
Check out BENCHMARK.md
- auto generated.
BSD-3-Clause
FAQs
Shake the dependency tree and only include files needed
The npm package cbumstead-serverless-plugin-tree-shake receives a total of 0 weekly downloads. As such, cbumstead-serverless-plugin-tree-shake popularity was classified as not popular.
We found that cbumstead-serverless-plugin-tree-shake demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.