mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
ServerlessMeta: skip over hidden files when loading #578
This commit is contained in:
parent
6670cd72eb
commit
a95d434d4e
@ -49,6 +49,9 @@ class ServerlessMeta
|
||||
|
||||
for (let i = 0; i < variableFiles.length; i++) {
|
||||
|
||||
// Skip unrelated and hidden files
|
||||
if (!variableFiles[i] || variableFiles[i].charAt(0) === '.' || variableFiles[i].indexOf('s-variables') == -1) continue;
|
||||
|
||||
let variableFile = SUtils.readAndParseJsonSync(path.join(_this._S.config.projectPath, '_meta', 'variables', variableFiles[i]));
|
||||
|
||||
// Parse file name to get stage/region
|
||||
|
||||
@ -121,7 +121,7 @@ describe('Test Action: Function Deploy', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Function Deploy: Nested W/ Name Template', function() {
|
||||
describe('Function Deploy: Nested W/ Custom Name', function() {
|
||||
it('should deploy functions', function(done) {
|
||||
|
||||
this.timeout(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user