Skip to content

Commit 107a603

Browse files
committed
fix: explicitly package node-fetch
1 parent dee5c48 commit 107a603

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
steps:
4646
- prep_env
4747
- run: yarn lint
48+
build:
49+
<<: *docker_defaults
50+
working_directory: ~/repo
51+
steps:
52+
- prep_env
53+
- run: yarn build
4854
deploy_sandbox:
4955
<<: *docker_defaults
5056
working_directory: ~/repo
@@ -69,10 +75,14 @@ workflows:
6975
- lint:
7076
requires:
7177
- node_modules
78+
- build:
79+
requires:
80+
- node_modules
7281
- deploy_sandbox:
7382
requires:
7483
- test
7584
- lint
85+
- build
7686
filters:
7787
branches:
7888
only: master

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ package-lock.json # We use yarn ;)
77
*.pem
88
test-*-payload.json
99
yarn-error.log
10+
.serverless

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"start": "nodemon",
1717
"start-probot": "probot run ./src/tasks/processIssueComment/probot-processIssueComment.js",
1818
"start-serverless": "serverless offline start",
19+
"build": "serverless package",
1920
"lint": "eslint .",
2021
"lint-fix": "eslint --fix .",
2122
"test": "jest --collectCoverage",

serverless.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ plugins:
55
- serverless-dotenv-plugin
66
- serverless-offline # must be last
77

8+
# https://serverless.com/framework/docs/providers/aws/guide/packaging/
9+
package:
10+
include:
11+
- 'node_modules/node-fetch/**'
12+
813
custom:
914
stage: ${opt:stage, self:provider.stage}
1015
appId:

0 commit comments

Comments
 (0)