Fix build on windows
Summary: Fix for build on windows Reviewed By: mweststrate Differential Revision: D20601309 fbshipit-source-id: 9845964513d7904f58e3511b1c4daa8716f7b054
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0a8d8f44ff
commit
d9d3be33b4
@@ -29,10 +29,11 @@ export default async (packageDir: string) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (packageDir === '/') {
|
||||
const nextDir = path.dirname(packageDir);
|
||||
if (!nextDir || nextDir === '/' || nextDir === packageDir) {
|
||||
break;
|
||||
}
|
||||
packageDir = path.dirname(packageDir);
|
||||
packageDir = nextDir;
|
||||
}
|
||||
return watchDirs;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user