You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running sam build, local npm packages are not part of the build.
Steps to reproduce:
Create a local npm package somewhere outside of the code uri folder
Inside your code uri folder, run npm i ../../path to my local shared npm package
Run sam build
Observed result:
The local npm package is not installed
Expected result:
The local npm package to be installed.
I'm guessing this is due to sam building inside a docker container? Is there a way to tell sam to pull in these external files? I also tried symlinking the local module into the code uri folder, but that didn't work either.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
OS: macOS 10.15
If using SAM CLI, sam --version: 1.18.0
AWS region: haven't deployed, yet
Add --debug flag to any SAM CLI commands you are running
The text was updated successfully, but these errors were encountered:
Description:
When running
sam build
, local npm packages are not part of the build.Steps to reproduce:
npm i ../../path to my local shared npm package
sam build
Observed result:
The local npm package is not installed
Expected result:
The local npm package to be installed.
I'm guessing this is due to sam building inside a docker container? Is there a way to tell sam to pull in these external files? I also tried symlinking the local module into the code uri folder, but that didn't work either.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.18.0Add --debug flag to any SAM CLI commands you are running
The text was updated successfully, but these errors were encountered: