8 lines
244 B
TypeScript
8 lines
244 B
TypeScript
|
|
/**
|
||
|
|
* Cross-platform check if a path is inside .sisyphus/ directory.
|
||
|
|
* Handles both forward slashes (Unix) and backslashes (Windows).
|
||
|
|
*/
|
||
|
|
export function isSisyphusPath(filePath: string): boolean {
|
||
|
|
return /\.sisyphus[/\\]/.test(filePath)
|
||
|
|
}
|