From 2ba1d74c2315001db12c31d07c2fe23a20da25dc Mon Sep 17 00:00:00 2001 From: Ulad Kasach Date: Sun, 29 Oct 2023 19:03:58 -0400 Subject: [PATCH] fix(sls): ensure plugins dont have unnessesary newline --- .../serverless/best-practice/serverless.yml.declapract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/practices/serverless/best-practice/serverless.yml.declapract.ts b/src/practices/serverless/best-practice/serverless.yml.declapract.ts index 768242a..74d29e4 100644 --- a/src/practices/serverless/best-practice/serverless.yml.declapract.ts +++ b/src/practices/serverless/best-practice/serverless.yml.declapract.ts @@ -28,7 +28,7 @@ export const fix: FileFixFunction = (contents) => { ) .replace( ' artifact: .artifact/contents.zip\n\nprovider:', // if no plugins at all - ' artifact: .artifact/contents.zip\n\nplugins:\n\n - serverless-prune-plugin\n\nprovider:', // add the sls prune plugin + ' artifact: .artifact/contents.zip\n\nplugins:\n - serverless-prune-plugin\n\nprovider:', // add the sls prune plugin ), }; };