UNPKG

knip

Version:

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

17 lines (16 loc) 432 B
import { hasDependency } from '../../util/plugin.js'; const title = 'playwright-test'; const enablers = ['playwright-test']; const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers); const args = { positional: true, args: (args) => args.filter(arg => arg !== 'install' && arg !== 'test'), config: true, }; const plugin = { title, enablers, isEnabled, args, }; export default plugin;