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.
@packt/serverless-plugin-package
Advanced tools
A serverless plugin to expose package.json variables
Makes package.json
variables available.in serverless.yml
, and exposes the package.json
version as its semver
components.
Install the plugin using the serverless cli
serverless plugin install -n @packt/serverless-plugin-package
Install the package in your service:
npm install --save-dev @packt/serverless-plugin-package
Then register it in your plugins array in serverless.yml
:
plugins:
- "@packt/serverless-plugin-package"
Note: Don't forget to quoe the plugin name in serverless.yml
, @
has a meaning in yml.
To reference variables from your project's package.json
.
# Becomes name: my-awesome-service-1
name: ${package:name}-${package:semver.major}
...
custom:
# Uses your description from package.json
description: ${package:description}
To reference semver
parts of your project's version
:
custom:
patchVersion: ${package:semver.patch}
minorVersion: ${package:semver.minor}
majorVersion: ${package:semver.major}
FAQs
A serverless plugin to expose package.json variables
We found that @packt/serverless-plugin-package demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.