Skip to content

Commit 237c661

Browse files
committed
refactor(exclude-paths): colocate 4 path helpers (drop unused exports)
1 parent 514f09a commit 237c661

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cli/src/commands/scan/exclude-paths.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function normalizeExcludePath(path: string): string {
121121
: `${stripped}/**`
122122
}
123123

124-
export function normalizeProjectIgnorePath(path: string): string {
124+
function normalizeProjectIgnorePath(path: string): string {
125125
return stripTrailingSlash(
126126
toPosixPath(path.startsWith('/') ? path.slice(1) : path),
127127
)
@@ -155,7 +155,7 @@ export function pathRelativeToTarget(
155155
return undefined
156156
}
157157

158-
export function projectIgnorePathToReachExcludePaths(
158+
function projectIgnorePathToReachExcludePaths(
159159
path: string,
160160
targetPattern: string,
161161
): string[] {
@@ -192,10 +192,10 @@ export function projectIgnorePathsToReachExcludePaths(
192192
)
193193
}
194194

195-
export function stripTrailingSlash(path: string): string {
195+
function stripTrailingSlash(path: string): string {
196196
return path.length > 1 && path.endsWith('/') ? path.slice(0, -1) : path
197197
}
198198

199-
export function toPosixPath(path: string): string {
199+
function toPosixPath(path: string): string {
200200
return path.replaceAll('\\', '/')
201201
}

0 commit comments

Comments
 (0)