Skip to content

Commit d6a4af1

Browse files
Merge pull request #34 from jryd/patch-1
Update package documentation to include note for shipping node_modules
2 parents a242bb3 + c558073 commit d6a4af1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/functions/handlers-and-packages.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ class ExampleFunction extends LambdaFunction
162162
}
163163
```
164164

165+
> Note; if you are using any external dependencies (i.e packages installed in your `node_modules`), you need to ship the dependencies also.
166+
> For example, if you have installed some Javascript packages for your Javascript function, and these were installed alongside your function in the `resources/lambda` folder, then you would need to include the whole directory as detailed above.
167+
> See the section below on "Strategies for Dealing With node_modules" for more control over this
168+
165169
## The Package Class
166170

167171
If you need a little more fine-grained control over the packaging process, you can use the `Package` class instead of the simpler array format.

0 commit comments

Comments
 (0)