Skip to content

Commit bbd406c

Browse files
author
Sean Dawson
committed
build: add format build script to package.json
1 parent 6ac0c96 commit bbd406c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/serverless-sns-sqs-lambda.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,8 @@ export default class ServerlessSnsSqsLambda {
159159
}
160160

161161
this.hooks = {
162-
"aws:package:finalize:mergeCustomProviderResources": this.modifyTemplate.bind(
163-
this
164-
)
162+
"aws:package:finalize:mergeCustomProviderResources":
163+
this.modifyTemplate.bind(this)
165164
};
166165
}
167166

@@ -173,8 +172,8 @@ export default class ServerlessSnsSqsLambda {
173172
modifyTemplate() {
174173
const functions = this.serverless.service.functions;
175174
const stage = this.serverless.service.provider.stage;
176-
const template = this.serverless.service.provider
177-
.compiledCloudFormationTemplate;
175+
const template =
176+
this.serverless.service.provider.compiledCloudFormationTemplate;
178177

179178
Object.keys(functions).forEach(funcKey => {
180179
const func = functions[funcKey];

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"test": "eslint lib/**/*.ts && jest --clearCache lib && jest --runInBand lib",
8+
"format": "prettier --write 'lib/**/*.{ts,tsx,yaml,yml,js,json}'",
89
"build": "tsc",
910
"commit": "git-cz",
1011
"prepack": "tsc"

0 commit comments

Comments
 (0)