Skip to content

Commit e790508

Browse files
committed
TODO nit
1 parent 99cbaaa commit e790508

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/path-resolve.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ function ignorePatternToMinimatch(pattern: string): string {
159159
}
160160

161161
function pathsToPatterns(paths: string[]): string[] {
162+
// TODO: Does not support `~/` paths.
162163
return paths.map(p => (p === '.' ? '**/*' : p))
163164
}
164165

@@ -207,7 +208,6 @@ export async function getPackageFiles(
207208
): Promise<string[]> {
208209
debugLog(`Globbed resolving ${inputPaths.length} paths:`, inputPaths)
209210

210-
// TODO: Does not support `~/` paths
211211
const entries = await globWithGitIgnore(pathsToPatterns(inputPaths), {
212212
cwd,
213213
socketConfig: config
@@ -239,7 +239,6 @@ export async function getPackageFilesFullScans(
239239
): Promise<string[]> {
240240
debugLog(`Globbed resolving ${inputPaths.length} paths:`, inputPaths)
241241

242-
// TODO: Does not support `~/` paths
243242
const entries = await globWithGitIgnore(pathsToPatterns(inputPaths), {
244243
cwd
245244
})

0 commit comments

Comments
 (0)