Skip to content

Commit

Permalink
fix: changed outdir to dist and ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
weswhitney committed May 8, 2022
1 parent 3e649a1 commit 7c66c79
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .build/handler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .build/handler.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.serverless
.env
.env
dist
5 changes: 3 additions & 2 deletions handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ export async function run(
_callback: (arg0: null, arg1: { success: boolean }) => void
) {
const alert = await forecast()
console.log("alert ", alert.alerts[0].description)
const msg = alert.alerts[0].description
var sns = new AWS.SNS()
var params = {
Message: "will be forecast",
Message: msg,
Subject: "Test SNS From Lambda",
TopicArn: "arn:aws:sns:us-east-1:979673662712:topic-for-pusher-lambda",
}
sns.publish(params, context.done)
console.log("published msg ", msg)
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sourceMap": true,
"allowJs": true,
"target": "es5",
"outDir": ".build",
"outDir": "dist",
"moduleResolution": "node",
"lib": ["es2015"],
"rootDir": "./"
Expand Down

0 comments on commit 7c66c79

Please sign in to comment.