UNPKG

deep-list-dir

Version:

Recursively lists given directory, alternatively filtering results with given options

31 lines (27 loc) 667 B
import { name, version, author, license } from './package.json' import commonjs from '@rollup/plugin-commonjs' const initialYear = 2020 const yearsActive = new Date().getFullYear() !== initialYear ? `${ initialYear }-${ new Date().getFullYear() }` : initialYear const banner = `/*! * ${ name } v${ version } * (c) ${ yearsActive } ${ author } * ${ license } */` export default [ { input: 'src/deep-list-dir.js', output: [ { file: `dist/deep-list-dir.js`, format: 'cjs', banner }, { file: `dist/deep-list-dir.mjs`, format: 'esm', banner }, ], plugins: [commonjs()] } ]