AnomalyInnovations / serverless-nodejs-starter

A Node.js starter for Serverless Framework with ES6 and TypeScript support

Home Page:https://serverless-stack.com/chapters/serverless-nodejs-starter.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong NPM package version while Packing

ebisbe opened this issue · comments

I'm using flickr-sdk with a branch that is not master branch. When packaging it my package version ends up like this

{
  "dependencies": {
    "babel-runtime": "^6.26.0",
    "flickr-sdk": "^3.0.0",
    "source-map-support": "^0.4.16"
  }
}

and should be like this

   "dependencies": {
    "babel-runtime": "^6.23.0",
    "flickr-sdk": "^3.0.0-alpha.6",
    "source-map-support": "^0.4.14"
  }

It's using different versions. Is there some sort of configuration I can do?

commented

@ebisbe What do you mean when packaging it? What's the command you are running?

Sorry @jayair I'm learning about webpack and all major processes and I still have missing pieces in my understanding of how things work. If found that the issue was in my configuration with the serverless-webpack. I'm using an alpha release and it's a bit tricky (for me) to set up.

commented

@ebisbe I see. No worries.