We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4644010 commit 7c9d48eCopy full SHA for 7c9d48e
src/common/isFileOnPath.ts
@@ -1,3 +1,4 @@
1
+import path from 'path';
2
import { getPosixFilePath } from './utils';
3
import { getAbsolutePath } from './getAbsolutePath';
4
import { getProjectPathFromArgs } from './utils';
@@ -19,5 +20,7 @@ export function isFileOnPath({
19
20
21
const absolutePathToStrictFiles = getAbsolutePath(projectPath, targetPath);
22
- return getPosixFilePath(filePath).startsWith(getPosixFilePath(absolutePathToStrictFiles));
23
+ return getPosixFilePath(filePath).startsWith(
24
+ getPosixFilePath(absolutePathToStrictFiles) + path.posix.sep,
25
+ );
26
}
0 commit comments