mirror of
https://github.com/motajs/template.git
synced 2026-11-09 03:34:30 +08:00
refactor: 删除 legacy-common 包
This commit is contained in:
1 parent
6cc27b6de2
commit
45e4f025b9
7 files changed
+2
-233
No files matched your search
@@ -30,11 +30,7 @@ export interface CycleClassification {
|
||||
inScope: boolean;
|
||||
}
|
||||
|
||||
export type FixtureName =
|
||||
| 'legacy-only'
|
||||
| 'client-only'
|
||||
| 'legacy-data'
|
||||
| 'legacy-common';
|
||||
export type FixtureName = 'legacy-only' | 'client-only' | 'legacy-data';
|
||||
|
||||
interface FixtureCycles {
|
||||
readonly [name: string]: readonly CircularCycle[];
|
||||
@@ -58,12 +54,6 @@ const fixtureCycles: FixtureCycles = {
|
||||
'packages-user/data-state/src/legacy/move.ts',
|
||||
'packages-user/data-base/src/hero/state.ts'
|
||||
]
|
||||
],
|
||||
'legacy-common': [
|
||||
[
|
||||
'packages-user/data-state/src/legacy/move.ts',
|
||||
'packages/common/src/utils/types.ts'
|
||||
]
|
||||
]
|
||||
};
|
||||
|
||||
@@ -147,7 +137,7 @@ function parseFixture(args: readonly string[]): FixtureName | undefined {
|
||||
}
|
||||
if (args.length !== 2 || args[0] !== '--fixture') {
|
||||
throw new Error(
|
||||
'Usage: pnpm exec tsx script/check-data-circular.ts [--fixture <legacy-only|client-only|legacy-data|legacy-common>]'
|
||||
'Usage: pnpm exec tsx script/check-data-circular.ts [--fixture <legacy-only|client-only|legacy-data>]'
|
||||
);
|
||||
}
|
||||
const fixture = args[1];
|
||||
|
||||
Reference in new issue
Block a user