Skip to content

Commit

Permalink
Fix: deploy layers when hot reload enabled (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe4dev authored May 17, 2023
1 parent 26b4dc5 commit 203a9c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ custom:
## Change Log
* v1.1.1: Fix layer deployment if `mountCode` is enabled by always packaging and deploying
* v1.1.0: Fix SSM environment variables resolving issues with serverless v3, change default for `BUCKET_MARKER_LOCAL` to `hot-reload`
* v1.0.6: Add `BUCKET_MARKER_LOCAL` configuration for customizing S3 bucket for lambda mount and [Hot Reloading](https://docs.localstack.cloud/user-guide/tools/lambda-tools/hot-reloading/).
* v1.0.5: Fix S3 Bucket LocationConstraint issue when the provider region is `us-east-1`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-localstack",
"version": "1.1.0",
"version": "1.1.1",
"description": "Connect Serverless to LocalStack!",
"main": "src/index.js",
"scripts": {
Expand All @@ -24,7 +24,8 @@
"Justin McCormick <[email protected]>",
"djKooks",
"yohei1126",
"bentsku"
"bentsku",
"Joel Scheuner (joe4dev)"
],
"license": "MIT",
"bugs": {
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ class LocalstackPlugin {
}

// Patch plugin methods
this.skipIfMountLambda('Package', 'packageService');
function compileFunction(functionName) {
if (!this.shouldMountCode()) {
return compileFunction._functionOriginal.apply(null, arguments);
Expand Down Expand Up @@ -210,7 +209,6 @@ class LocalstackPlugin {
this.skipIfMountLambda('AwsCompileFunctions', 'compileFunction', compileFunction);
this.skipIfMountLambda('AwsCompileFunctions', 'downloadPackageArtifacts');
this.skipIfMountLambda('AwsDeploy', 'extendedValidate');
this.skipIfMountLambda('AwsDeploy', 'uploadFunctionsAndLayers');
if (this.detectTypescriptPluginType()) {
this.skipIfMountLambda(this.detectTypescriptPluginType(), 'cleanup', null, [
'after:package:createDeploymentArtifacts', 'after:deploy:function:packageFunction']);
Expand Down

0 comments on commit 203a9c9

Please sign in to comment.