File tree Expand file tree Collapse file tree
packages/cli/src/commands/scan Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments