Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node_modules is empty: running serverless package #54

Open
dineshrawat11 opened this issue Jul 24, 2020 · 1 comment
Open

node_modules is empty: running serverless package #54

dineshrawat11 opened this issue Jul 24, 2020 · 1 comment

Comments

@dineshrawat11
Copy link

dineshrawat11 commented Jul 24, 2020

This is my yml file:

service: covation-labs-api
provider:
  name: aws
  runtime: nodejs10.x
  stage: v1
  region: eu-central-1
  memorySize: 128
package:
  excludeDevDependencies: false
  individually: true
  include:
    - dist/**
    - package.json
plugins:
  - serverless-plugin-common-excludes
  - serverless-plugin-include-dependencies
custom:
  includeDependencies:
    always:
      - 'dist/**' 
functions:
  app:
    handler: dist/lambda.handler
    events: 
      - http: 
          path: /
          method: ANY
          cors: true
      - http: 
          path: /{proxy+}
          method: ANY
          cors: true

The problem is the node modules are not moving inside node_modules. I want have all the packages in node_modules which are used inside /dist folder.

I am running:
serverless package

Please help!

@dineshrawat11 dineshrawat11 changed the title node_modules is empty node_modules is empty: running serverless package Jul 24, 2020
@dougmoscrop
Copy link
Owner

what is in /dist? when does that get written to /dist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants