Skip to content

Commit

Permalink
Merge pull request #40 from trilom/master
Browse files Browse the repository at this point in the history
intended the syncMetadata to run with every deploy as well as s3sync
  • Loading branch information
k1LoW authored Jan 8, 2020
2 parents 25c2845 + e6c6ed4 commit ccc8f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ServerlessS3Sync {
};

this.hooks = {
'after:deploy:deploy': () => options.nos3sync?undefined:BbPromise.bind(this).then(this.sync),
'after:deploy:deploy': () => options.nos3sync ? undefined : BbPromise.bind(this).then(this.sync).then(this.syncMetadata),
'before:remove:remove': () => BbPromise.bind(this).then(this.clear),
's3sync:sync': () => BbPromise.bind(this).then(this.sync),
's3sync:metadata': () => BbPromise.bind(this).then(this.syncMetadata)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-s3-sync",
"version": "1.10.0",
"version": "1.10.1",
"description": "A plugin to sync local directories and S3 prefixes for Serverless Framework.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ccc8f6c

Please sign in to comment.