prefix all S3 files with '/'

This commit is contained in:
Matthias Kretschmann 2018-01-10 17:55:18 -02:00
parent d16ef5e4ec
commit bc756270c7
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 4 additions and 0 deletions

View File

@ -445,6 +445,10 @@ export const s3 = () => {
"^.+$": "$&"
}
}))
// Make sure everything goes to the root '/'
.pipe($.rename(path => {
path.dirname = '/' + path.dirname
}))
.pipe(parallelize(publisher.publish(), 100))
.pipe(publisher.sync()) // delete files in bucket that are not in local folder
.pipe($.awspublish.reporter({