UNPKG

knip

Version:

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

19 lines (18 loc) 487 B
import { hasDependency } from '../../util/plugin.js'; const title = 'Remix'; const enablers = [/^@remix-run\//]; const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers); const entry = ['remix.config.js', 'remix.init/index.js']; const production = [ 'app/root.tsx', 'app/entry.{client,server}.{js,jsx,ts,tsx}', 'app/routes/**/*.{js,ts,tsx}', 'server.{js,ts}', ]; export default { title, enablers, isEnabled, entry, production, };