From ec97c4cac69c1834cc4ea43be941501aa0ea861b Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Mon, 23 Nov 2026 22:16:56 +0900 Subject: [PATCH] refactor(components/{game,npm-stats}): remove unused barrel files --- knip.jsonc | 2 - src/components/game/engine/entities/index.ts | 15 ----- src/components/npm-stats/index.ts | 65 -------------------- 3 files changed, 82 deletions(-) delete mode 100644 src/components/game/engine/entities/index.ts delete mode 100644 src/components/npm-stats/index.ts diff --git a/knip.jsonc b/knip.jsonc index c1acb5a1b..556c18238 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -41,12 +41,10 @@ "src/components/application-starter/CustomTemplateDialog.tsx", "src/components/application-starter/FeaturePicker.tsx", "src/components/application-starter/index.ts", - "src/components/game/engine/entities/index.ts", "src/components/icons/BaseballCapIcon.tsx", "src/components/icons/YinYangIcon.tsx", "src/components/landing/LandingCodeExampleCard.tsx", "src/components/landing/codeExamples.ts", - "src/components/npm-stats/index.ts", "src/hooks/useQueryGGPPPDiscount.ts", "src/libraries/cli.tsx", "src/libraries/config.tsx", diff --git a/src/components/game/engine/entities/index.ts b/src/components/game/engine/entities/index.ts deleted file mode 100644 index 4af675cfe..000000000 --- a/src/components/game/engine/entities/index.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Re-export all entities - this module handles HMR -export { Sky } from './Sky' -export { Ocean } from './Ocean' -export { Boat } from './Boat' -export { Coins } from './Coins' -export { Islands } from './Islands' -export { OceanRocks } from './OceanRocks' -export { BoundaryWalls } from './BoundaryWalls' -export { AIShips } from './AIShips' -export { Cannonballs } from './Cannonballs' - -// HMR - bubble up to parent -if (import.meta.hot) { - import.meta.hot.accept() -} diff --git a/src/components/npm-stats/index.ts b/src/components/npm-stats/index.ts deleted file mode 100644 index 9c1fd470b..000000000 --- a/src/components/npm-stats/index.ts +++ /dev/null @@ -1,65 +0,0 @@ -export { NPMStatsChart, type NPMStatsChartProps } from './NPMStatsChart' - -export type { - NpmQueryData, - PackageGroup, - BinType, - ChartType, - TransformMode, - ShowDataMode, - LatestBarSort, - BarOrientation, - TimeRange, - ViewMode, -} from './shared' - -export { - binTypeSchema, - chartTypeSchema, - transformModeSchema, - showDataModeSchema, - latestBarSortSchema, - barOrientationSchema, - viewModeSchema, - binningOptions, - timeRanges, - defaultRangeBinTypes, - getPackageColor, - formatNumber, - isBinningOptionValidForRange, - isChartTypeValidForViewMode, - getDefaultChartTypeForViewMode, -} from './shared' - -export { binningOptionsByType } from './binning' - -export { PopularComparisons, type ComparisonGroup } from './PopularComparisons' - -export { PackageSearch, type PackageSearchProps } from './PackageSearch' - -export { Resizable, type ResizableProps } from './Resizable' - -export { npmQueryOptions } from './npmQueryOptions' - -export { - ColorPickerPopover, - type ColorPickerPopoverProps, -} from './ColorPickerPopover' - -export { StatsTable, type StatsTableProps } from './StatsTable' - -export { NPMSummary } from './NPMSummary' - -export { - LatestBucketNavigator, - type LatestBucketNavigatorProps, -} from './LatestBucketNavigator' - -export { ChartControls, type ChartControlsProps } from './ChartControls' - -export { - PackagePill, - PackagePills, - type PackagePillProps, - type PackagePillsProps, -} from './PackagePills'