From f13a628e3c09fcf3e4be34e67478f25684ba0c44 Mon Sep 17 00:00:00 2001 From: mrickard Date: Mon, 25 Nov 2019 17:56:13 -0500 Subject: [PATCH] Updating plugin name in plugin order checking Closes #17 --- package.json | 2 +- src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5876d29d..447a4f1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-newrelic-lambda-layers", - "version": "0.1.4", + "version": "0.1.5", "description": "Serverless plugin for NewRelic APM AWS Lambda layers.", "main": "dist/index.js", "files": [ diff --git a/src/index.ts b/src/index.ts index 6dc9cc5b..b4ed5e63 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,10 +54,10 @@ export default class NewRelicLambdaLayerPlugin { this.serverless.cli.log(`Plugins: ${JSON.stringify(plugins)}`); if ( plugins.indexOf("serverless-webpack") > - plugins.indexOf("serverless-newrelic-layers") + plugins.indexOf("serverless-newrelic-lambda-layers") ) { this.serverless.cli.log( - "serverless-newrelic-layers plugin must come after serverless-webpack in serverless.yml; skipping." + "serverless-newrelic-lambda-layers plugin must come after serverless-webpack in serverless.yml; skipping." ); return; }