Commit 3b2a74f
committed
fix: use
An ignore path can be relative.
For example:
- folder can be `/foo/configs`
- file can be `/foo/src/index.ts`
- the ignore file can be `/foo/configs/.prettierignore`
- the ignore contents can be `../src/index.ts`
This means we end up doing:
```
// does not fall back to path.relative
fastRelativeChildPath('/foo/configs', '/foo/src/index.ts');
```
Which fails since we actually need `fastRelativePath`:
```
// falls back to path.relative
fastRelativePath('/foo/configs', '/foo/src/index.ts');
```fastRelativePath when processing ignore paths1 parent 4b1a66a commit 3b2a74f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments