From e6c6ed4b7d6763b99ec922771e8a01b1edcc3669 Mon Sep 17 00:00:00 2001 From: Bryan Killian Date: Tue, 7 Jan 2020 20:30:31 -0500 Subject: [PATCH] intended the syncMetadata to run with every deploy as well as s3sync --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d4e76db..571953f 100644 --- a/index.js +++ b/index.js @@ -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) diff --git a/package.json b/package.json index 582a31e..3bec41d 100644 --- a/package.json +++ b/package.json @@ -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": {