knip
Version:
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
14 lines (13 loc) • 412 B
JavaScript
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'];
export default {
title,
enablers,
isEnabled,
isRootOnly,
entry,
};