import ignore , { Ignore } from "ignore" ; export default class IgnoreFiles { private _ignore : Ignore ; constructor ( pattern ) { this . _ignore = ignore ( ) . add ( pattern ) ; } filter ( pathnames ) { return this . _ignore . filter ( pathnames ) ; } }