mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Rename mapping rekey to rename.
This commit is contained in:
@@ -49,8 +49,8 @@ function isThru(funcName) {
|
||||
|
||||
function getTemplate(moduleName) {
|
||||
var data = {
|
||||
'key': mapping.key,
|
||||
'name': _.result(mapping.aliasToReal, moduleName, moduleName)
|
||||
'name': _.result(mapping.aliasToReal, moduleName, moduleName),
|
||||
'rename': mapping.rename
|
||||
};
|
||||
|
||||
if (isAlias(moduleName)) {
|
||||
@@ -91,7 +91,7 @@ function build(target) {
|
||||
});
|
||||
|
||||
// Add FP alias and remapped module paths.
|
||||
_.each([mapping.aliasToReal, mapping.key], function(data) {
|
||||
_.each([mapping.aliasToReal, mapping.rename], function(data) {
|
||||
_.forOwn(data, function(realName, alias) {
|
||||
modulePaths.push(path.join(target, alias + '.js'));
|
||||
});
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
var convert = require('./convert');
|
||||
module.exports = convert('<%= name %>', require('../<%= _.result(key, name, name) %>'));
|
||||
module.exports = convert('<%= name %>', require('../<%= _.result(rename, name, name) %>'));
|
||||
|
||||
Reference in New Issue
Block a user