Coder Social home page Coder Social logo

Comments (12)

agutoli avatar agutoli commented on August 19, 2024 1

You can not pass yarn.lock to custom:packagePath. That option is just for package.json file. If you have a project which package.json is not in the root folder for example, you can do like:

custom:
  serverless-layers:
    packagePath: ./MyCustomFolder/package.json

from serverless-layers.

agutoli avatar agutoli commented on August 19, 2024

Is that working? @mattnakatani

from serverless-layers.

mattnakatani avatar mattnakatani commented on August 19, 2024

yes if i point it at a package json it will be working however I was hoping to use the yarn lock since that is more indicative as to whether or not the dependencies have changed and a new layer needs to be deployed.

I was thinking yarn.lock should work because #4

from serverless-layers.

agutoli avatar agutoli commented on August 19, 2024

Yes, It has "yarn.lock" support already.

I can see here:
https://github.com/agutoli/serverless-layers/blob/master/src/package/Dependencies.js#L53

from serverless-layers.

mattnakatani avatar mattnakatani commented on August 19, 2024

right but it still doesn't work with my yarn lock

from serverless-layers.

agutoli avatar agutoli commented on August 19, 2024

Ok, can you share your custom settings, please?

Like:
custom:
  serverless-layers:
    packagePath: ./MyCustomFolder/package.json

from serverless-layers.

mattnakatani avatar mattnakatani commented on August 19, 2024

custom: serverless-layers: packageManager: yarn compatibleRuntimes: ['nodejs','nodejs10.x'] packagePath: ../yarn.lock

from serverless-layers.

agutoli avatar agutoli commented on August 19, 2024

@mattnakatani Your options is wrong.

Screen Shot 2019-09-16 at 4 50 57 pm

Please try:

custom: 
  serverless-layers:
     packageManager: yarn

It should work.

from serverless-layers.

mattnakatani avatar mattnakatani commented on August 19, 2024

so is there no way to specify packagepath for yarnlock?

from serverless-layers.

agutoli avatar agutoli commented on August 19, 2024

Not necessary. As I said above, I already copy that file every time you do a deployment. Is that file on root folder? If yes, don't worry, it should work.

from serverless-layers.

agutoli avatar agutoli commented on August 19, 2024

Aldo, I had no usecases which It was necessary, I can implement It, but I do need to understand why.

from serverless-layers.

mattnakatani avatar mattnakatani commented on August 19, 2024

thank you

from serverless-layers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.