Skip to content

Commit

Permalink
Never try to use the shell find crawler on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
robhogan committed Jan 5, 2023
1 parent fa23b56 commit 3703019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/metro-file-map/src/crawlers/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import H from '../constants';
import * as fastPath from '../lib/fast_path';
import {spawn} from 'child_process';
import * as fs from 'graceful-fs';
import {platform} from 'os';
import * as path from 'path';

type Result = Array<[/* id */ string, /* mtime */ number, /* size */ number]>;
Expand All @@ -25,7 +26,7 @@ type Callback = (result: Result) => void;
async function hasNativeFindSupport(
forceNodeFilesystemAPI: boolean,
): Promise<boolean> {
if (forceNodeFilesystemAPI) {
if (forceNodeFilesystemAPI || platform() === 'win32') {
return false;
}

Expand Down

0 comments on commit 3703019

Please sign in to comment.