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:
xingyu4j
2026-05-20 16:14:21 +08:00
parent f71094e878
commit 9ec98f0846
8 changed files with 617 additions and 429 deletions

View File

@@ -36,14 +36,13 @@ import type { Component, Ref } from 'vue';
import type {
ApiComponentSharedProps,
BaseFormComponentType,
CollapsibleParamsProps,
IconPickerProps,
} from '@vben/common-ui';
import type { Sortable } from '@vben/hooks';
import type { TipTapProps } from '@vben/plugins/tiptap';
import type { Recordable } from '@vben/types';
import type { CollapsibleParamsProps } from '@vben-core/shadcn-ui';
import {
computed,
defineAsyncComponent,
@@ -62,6 +61,7 @@ import {
ApiComponent,
globalShareState,
IconPicker,
VbenCollapsibleParams,
VCropper,
} from '@vben/common-ui';
import { useSortable } from '@vben/hooks';
@@ -70,8 +70,6 @@ import { $t } from '@vben/locales';
import { VbenTiptap } from '@vben/plugins/tiptap';
import { isEmpty } from '@vben/utils';
import { VbenCollapsibleParams } from '@vben-core/shadcn-ui';
import { message, Modal, notification } from 'antdv-next';
import { upload_file } from '#/api/examples/upload';

View File

@@ -1,15 +1,11 @@
<script lang="ts" setup>
import type { RadioGroupProps } from 'antdv-next';
import type { FormLayout } from '@vben/common-ui';
import type { CollapsibleParamSchema } from '@vben-core/shadcn-ui';
import type { CollapsibleParamSchema, FormLayout } from '@vben/common-ui';
import { h, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { VbenCollapsibleParams } from '@vben-core/shadcn-ui';
import { Page, VbenCollapsibleParams } from '@vben/common-ui';
import { Button, Card, message, RadioGroup } from 'antdv-next';