react-native/local-cli/core/config/wrapCommands.js

10 lines
255 B
JavaScript
Raw Normal View History

const makeCommand = require('../makeCommand');
module.exports = function wrapCommands(commands) {
const mappedCommands = {};
Object.keys(commands || []).forEach((k) =>
mappedCommands[k] = makeCommand(commands[k])
);
return mappedCommands;
};