refactor: replace depcheck with knip for dependency checking
Migrate vsh check-dep from depcheck to knip, reducing 315 transitive dependencies. Config is inlined in DEFAULT_CONFIG, matching the check-circular pattern. Also re-export CollapsibleParams from @vben/common-ui.
This commit is contained in:
@@ -4,7 +4,7 @@ import { cac } from 'cac';
|
||||
|
||||
import { version } from '../package.json';
|
||||
import { defineCheckCircularCommand } from './check-circular';
|
||||
import { defineDepcheckCommand } from './check-dep';
|
||||
import { defineCheckDepCommand } from './check-dep';
|
||||
import { defineCodeWorkspaceCommand } from './code-workspace';
|
||||
import { defineLintCommand } from './lint';
|
||||
import { definePubLintCommand } from './publint';
|
||||
@@ -30,7 +30,7 @@ async function main(): Promise<void> {
|
||||
definePubLintCommand(vsh);
|
||||
defineCodeWorkspaceCommand(vsh);
|
||||
defineCheckCircularCommand(vsh);
|
||||
defineDepcheckCommand(vsh);
|
||||
defineCheckDepCommand(vsh);
|
||||
|
||||
// Set up CLI
|
||||
vsh.usage('vsh <command> [options]');
|
||||
|
||||
Reference in New Issue
Block a user