Comments (12)
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.
Is that working? @mattnakatani
from serverless-layers.
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.
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.
right but it still doesn't work with my yarn lock
from serverless-layers.
Ok, can you share your custom
settings, please?
Like:
custom:
serverless-layers:
packagePath: ./MyCustomFolder/package.json
from serverless-layers.
custom: serverless-layers: packageManager: yarn compatibleRuntimes: ['nodejs','nodejs10.x'] packagePath: ../yarn.lock
from serverless-layers.
@mattnakatani Your options is wrong.
Please try:
custom:
serverless-layers:
packageManager: yarn
It should work.
from serverless-layers.
so is there no way to specify packagepath for yarnlock?
from serverless-layers.
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.
Aldo, I had no usecases which It was necessary, I can implement It, but I do need to understand why.
from serverless-layers.
thank you
from serverless-layers.
Related Issues (20)
- You're currently using incompatible version [v16.14.2] HOT 1
- How to specify name of layer HOT 2
- Lambda layer install skipped because it has no other layers HOT 4
- Python Layers using other layers packages HOT 4
- Only upload new layer on deployment HOT 1
- deploymentBucket should defaults to reading from core HOT 2
- devDependecies removed before package builded HOT 1
- package.exclude from the serverless.yml is being ignored HOT 6
- Fails to load modules from layer after upgrading to sls v3 HOT 2
- serverless-layers + nestjs/swagger + serverless-plugin-datadog weird incompatibility
- Expose before and after hooks by using commands
- Symlink resolution in node_modules
- Can't attach layers if lambda size is 250 MB
- Error when deploying through Azure Pipeline Worker - ENOENT Error HOT 1
- Unzipped size must be smaller than 262144000 bytes HOT 4
- Layer version not updated when using provision concurency HOT 1
- Command failed: yarn --production HOT 3
- Wrong layer is used HOT 6
- Release new version?
- Not able to detect change in package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-layers.