Skip to content

Commit db0abc0

Browse files
committed
Exclude ds_store from deploy
1 parent 3862206 commit db0abc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/deploy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const through2 = require('through2');
1010
const mime = require('mime-types');
1111
const argv = require('yargs').argv
1212

13+
const EXCLUDES = ['.DS_Store'];
14+
1315
const s3 = new AWS.S3({
1416
region: 'eu-west-1',
1517
});
@@ -38,6 +40,10 @@ function stripPath(inputPath, absPathPrefix) {
3840
}
3941

4042
function uploadFile(objectKey, fileData) {
43+
if (EXCLUDES.indexOf(objectKey) != -1) {
44+
debug('Not uploading file', objectKey);
45+
}
46+
4147
debug('Uploading file', objectKey);
4248

4349
return s3Upload({

0 commit comments

Comments
 (0)