UNPKG

knip

Version:

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects

15 lines (14 loc) 435 B
import { _firstGlob } from '../../util/glob.js'; const title = 'Yarn'; const enablers = 'This plugin is enabled when a `yarn.lock` file is found in the root folder.'; const isEnabled = async ({ cwd }) => Boolean(await _firstGlob({ cwd, patterns: ['yarn.lock'] })); const isRootOnly = true; const entry = ['yarn.config.cjs']; const plugin = { title, enablers, isEnabled, isRootOnly, entry, }; export default plugin;