Skip to content

Commit e6c26b7

Browse files
rozelebestander
authored andcommitted
Update getCommands.js
Summary: Fixes issue with path for Windows. cc grabbou Closes #9898 Differential Revision: D3864923 fbshipit-source-id: e785bfe0f01f9cf0c1964518fed03e2090300a31
1 parent 85c3cff commit e6c26b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

local-cli/core/getCommands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function getCommands() {
1313
const appRoot = process.cwd();
1414
const plugins = findPlugins([appRoot])
1515
.map(pathToCommands => {
16-
const name = pathToCommands.split('/')[0];
16+
const name = pathToCommands.split(path.sep)[0];
1717

1818
return attachPackage(
1919
require(path.join(appRoot, 'node_modules', pathToCommands)),

0 commit comments

Comments
 (0)