Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@packt/serverless-plugin-package

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@packt/serverless-plugin-package

A serverless plugin to expose package.json variables

  • 1.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

Serverless Plugin Package

Packt serverless Greenkeeper badge npm CircleCI Codecov

Makes package.json variables available.in serverless.yml, and exposes the package.json version as its semver components.

Installing

Install the plugin using the serverless cli serverless plugin install -n @packt/serverless-plugin-package

Manual Installation

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.

Usage

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}

Keywords

FAQs

Package last updated on 15 Aug 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc