Skip to content

Commit

Permalink
feat: coreutils to IGNORED_GLOBAL_BINARIES (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
chappelo authored Sep 1, 2024
1 parent 3e0c464 commit 97e171d
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion packages/knip/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 97e171d

Please sign in to comment.