mirror of
https://github.com/samsonjs/batteries.git
synced 2026-03-31 10:15:45 +00:00
fix initialization of extensions
This commit is contained in:
parent
483210b91f
commit
dc63991bb2
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ var fs = require('fs')
|
|||
fs.readdirSync(__dirname).forEach(function (file) {
|
||||
file = file.replace('.js', '');
|
||||
if (file !== 'index') {
|
||||
exts.push(name);
|
||||
defineLazyProperty(batteries, name, function() { return require('./' + name); });
|
||||
exts.push(file);
|
||||
defineLazyProperty(batteries, file, function() { return require('./' + file); });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue