Merge pull request #940 from HyperBrain/896-follow-symlinks-on-copy

Issue #896 Add dereference option
This commit is contained in:
Eslam λ Hefnawy 2016-04-04 21:59:19 +07:00
commit 628776fd70

View File

@ -106,7 +106,8 @@ module.exports = function(S) {
let packageRoot = handlerFullPath.replace(func.handler, '');
return fse.copyAsync(packageRoot, pathDist, {
filter: this._processExcludePatterns(func, pathDist, stage, region)
filter: this._processExcludePatterns(func, pathDist, stage, region),
dereference: true
});
}