UNPKG

knip

Version:

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

14 lines (13 loc) 417 B
import { _firstGlob } from '../../util/glob.js'; const title = 'pnpm'; const isEnabled = async ({ cwd, manifest }) => Boolean(manifest.packageManager?.startsWith('pnpm@') || (await _firstGlob({ cwd, patterns: ['pnpm-lock.yaml', 'pnpm-workspace.yaml'] }))); const isRootOnly = true; const config = ['.pnpmfile.cjs']; const plugin = { title, isEnabled, isRootOnly, config, }; export default plugin;