diff --git a/local-cli/core/getCommands.js b/local-cli/core/getCommands.js index 96eaaad0c0f..7cd50dec1c0 100644 --- a/local-cli/core/getCommands.js +++ b/local-cli/core/getCommands.js @@ -13,7 +13,7 @@ module.exports = function getCommands() { const appRoot = process.cwd(); const plugins = findPlugins([appRoot]) .map(pathToCommands => { - const name = pathToCommands.split('/')[0]; + const name = pathToCommands.split(path.sep)[0]; return attachPackage( require(path.join(appRoot, 'node_modules', pathToCommands)),