Skip to content

Commit

Permalink
fix: explicitly package node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolam committed Jan 27, 2019
1 parent dee5c48 commit 107a603
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
steps:
- prep_env
- run: yarn lint
build:
<<: *docker_defaults
working_directory: ~/repo
steps:
- prep_env
- run: yarn build
deploy_sandbox:
<<: *docker_defaults
working_directory: ~/repo
Expand All @@ -69,10 +75,14 @@ workflows:
- lint:
requires:
- node_modules
- build:
requires:
- node_modules
- deploy_sandbox:
requires:
- test
- lint
- build
filters:
branches:
only: master
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ package-lock.json # We use yarn ;)
*.pem
test-*-payload.json
yarn-error.log
.serverless
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"start": "nodemon",
"start-probot": "probot run ./src/tasks/processIssueComment/probot-processIssueComment.js",
"start-serverless": "serverless offline start",
"build": "serverless package",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"test": "jest --collectCoverage",
Expand Down
5 changes: 5 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins:
- serverless-dotenv-plugin
- serverless-offline # must be last

# https://serverless.com/framework/docs/providers/aws/guide/packaging/
package:
include:
- 'node_modules/node-fetch/**'

custom:
stage: ${opt:stage, self:provider.stage}
appId:
Expand Down

0 comments on commit 107a603

Please # to comment.