vendor tsgo
This commit is contained in:
18
tools/tsgo/internal/tspath/ignoredpaths.go
Normal file
18
tools/tsgo/internal/tspath/ignoredpaths.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package tspath
|
||||
|
||||
import "strings"
|
||||
|
||||
var ignoredPaths = []string{
|
||||
"/node_modules/.",
|
||||
"/.git",
|
||||
".#",
|
||||
}
|
||||
|
||||
func ContainsIgnoredPath(path string) bool {
|
||||
for _, pattern := range ignoredPaths {
|
||||
if strings.Contains(path, pattern) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user