🌳
pt0/sharedF/isPtCodeFileExtF.mts
1import * as _ from 'lodash-es'
2import { ptFileExtA } from './ptFileExtsF.mts'
4export const prodPatchedInfix = '-prodPatched'
5export const ptmvpinnedInfix = '.ptmvpinned.'
6export const isProdPatched = (path: string) => path.includes(prodPatchedInfix)
7export const isPtCodeFileExt = (path: string): boolean => {
8 if (isProdPatched(path) || path.includes(ptmvpinnedInfix)) return false
9 return !!_.find(ptFileExtA, (ext: string) => _.endsWith(path, '.' + ext))