Skip to content

Commit a09c46c

Browse files
bevinhexlukemelia
authored andcommitted
[BREAKING] include hidden files in distFiles
- dot files are ignored from glob.sync , files like .htaccess would not get deployed since distFiles do not include hidden files. This commit configures glob.sync to include dot files. It should be relatively rare that this breaking change affects developer's apps, but we are considering it breaking because it could result in dot files becoming part of your deploy pipeline that were excluded in previous versions
1 parent 8ba6786 commit a09c46c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
this.log('reusing build from `' + outputPath, { verbose: true });
2222
return RSVP.resolve({
2323
distDir: outputPath,
24-
distFiles: glob.sync('**/*', { cwd: outputPath, nodir: true })
24+
distFiles: glob.sync('**/*', { cwd: outputPath, nodir: true , dot: true})
2525
});
2626
}
2727
var buildEnv = this.readConfig('environment');
@@ -55,7 +55,7 @@ module.exports = {
5555
},
5656
_logSuccess: function(outputPath) {
5757
var self = this;
58-
var files = glob.sync('**/**/*', { nonull: false, nodir: true, cwd: outputPath });
58+
var files = glob.sync('**/**/*', { nonull: false, nodir: true, cwd: outputPath , dot: true});
5959

6060
if (files && files.length) {
6161
files.forEach(function(path) {

0 commit comments

Comments
 (0)