mirror of
https://github.com/samsonjs/batteries.git
synced 2026-04-27 15:07:42 +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) {
|
fs.readdirSync(__dirname).forEach(function (file) {
|
||||||
file = file.replace('.js', '');
|
file = file.replace('.js', '');
|
||||||
if (file !== 'index') {
|
if (file !== 'index') {
|
||||||
exts.push(name);
|
exts.push(file);
|
||||||
defineLazyProperty(batteries, name, function() { return require('./' + name); });
|
defineLazyProperty(batteries, file, function() { return require('./' + file); });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue