diff --git a/packages/knip/src/constants.ts b/packages/knip/src/constants.ts index bd722166f..3fd13ecbf 100644 --- a/packages/knip/src/constants.ts +++ b/packages/knip/src/constants.ts @@ -34,51 +34,102 @@ export const DT_SCOPE = '@types'; // Package may exist in npm registry, but last publish is at least 6 years ago export const IGNORED_GLOBAL_BINARIES = new Set([ 'aws', + 'base64', + 'basename', 'bash', 'bun', 'bundle', 'bunx', 'cat', 'cd', + 'chown', 'chmod', + 'cksum', + 'comm', 'command', 'corepack', 'cp', 'curl', + 'cut', 'deno', + 'df', + 'dir', 'dirname', 'docker', 'echo', 'env', 'exec', 'exit', + 'expand', + 'expr', + 'factor', + 'false', 'find', 'gem', 'git', 'grep', + 'groups', 'gzip', + 'head', + 'id', + 'join', 'kill', 'ln', + 'logname', 'ls', + 'md5sum', 'mkdir', + 'mknod', 'mv', + 'nice', + 'nl', + 'nohup', 'node', 'npm', + 'nproc', 'npx', + 'paste', 'pnpm', 'pnpx', + 'pr', + 'printenv', + 'pwd', 'rm', + 'rmdir', + 'seq', 'set', + 'sha1sum', + 'sha512sum', 'sh', + 'shred', + 'shuf', + 'sort', + 'split', 'ssh', + 'stat', + 'stty', 'sudo', + 'sync', + 'tac', + 'tee', 'test', // exception (node built-in module) + 'timeout', 'touch', + 'tr', 'true', - 'yarn', + 'tsort', + 'tty', + 'uname', + 'unexpand', + 'uniq', + 'wc', + 'who', + 'whoami', 'xargs', 'xcodebuild', 'xvfb-run', + 'yarn', + 'yes', ]); export const IGNORED_DEPENDENCIES = new Set(['knip', 'typescript']);