Skip to content

Commit b2b91ba

Browse files
committed
fix default export
1 parent 16c7c39 commit b2b91ba

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

engine.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var rightPad = require('right-pad');
88
// This can be any kind of SystemJS compatible module.
99
// We use Commonjs here, but ES6 or AMD would do just
1010
// fine.
11-
exports['default'] = function (options) {
11+
module.exports = function (options) {
1212

1313
var types = options.types;
1414

@@ -92,5 +92,3 @@ exports['default'] = function (options) {
9292
}
9393
};
9494
};
95-
96-
module.exports = exports;

index.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
var engine = require('./engine');
44
var conventionalCommitTypes = require('conventional-commit-types');
55

6-
module.exports = engine({
6+
var engineInstance = engine({
77
types: conventionalCommitTypes.types
88
});
9+
10+
var _extends = function (target) {
11+
for (var i = 1; i < arguments.length; i++) {
12+
var source = arguments[i];
13+
for (var key in source) {
14+
target[key] = source[key];
15+
}
16+
}
17+
18+
return target;
19+
};
20+
21+
exports['default'] = engineInstance;
22+
23+
module.exports = _extends(exports['default'], exports);

0 commit comments

Comments
 (0)