mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
* More narrowly define default function excludePatterns * Correct reference to undefined properties in `Runtime._validateAndPrepare()`
This commit is contained in:
parent
13f68b359d
commit
5791e69508
@ -192,7 +192,7 @@ module.exports = function(S) {
|
||||
// Copy entire test project to temp folder, don't include anything in excludePatterns
|
||||
let excludePatterns = func.custom.excludePatterns || [];
|
||||
|
||||
excludePatterns = excludePatterns.concat(['_meta', 'admin.env', '.env']);
|
||||
excludePatterns = excludePatterns.concat(['_meta', 'admin\.env$', '\.env$']);
|
||||
|
||||
return function (name, prefix) {
|
||||
|
||||
|
||||
@ -84,9 +84,9 @@ module.exports = function(S) {
|
||||
// TODO: Validate Options
|
||||
|
||||
// Instantiate Classes
|
||||
_this.aws = _this.S.getProvider();
|
||||
_this.project = _this.S.getProject();
|
||||
_this.function = _this.S.getProject().getFunction( _this.evt.options.name );
|
||||
_this.aws = S.getProvider();
|
||||
_this.project = S.getProject();
|
||||
_this.function = S.getProject().getFunction( _this.evt.options.name );
|
||||
_this.functionPopulated = _this.function.toObjectPopulated({ stage: _this.evt.options.stage, region: _this.evt.options.region });
|
||||
|
||||
// Set default function name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user