Skip to content

Commit 5e559b2

Browse files
committed
improvement(platform): declare the design system's entries for the dead-code audit
1 parent ccf898d commit 5e559b2

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎knip.jsonc‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@
4040
// The design system's public surface: a snapshot consumers pick from, kept whole so it stays
4141
// identical to its source and rebases cleanly.
4242
"platform/design-system/**/*.{ts,tsx}",
43-
// Foundation for the organization redesign's lanes. Remove once their pages import these.
43+
// CSS Modules reach this through `@reference`, which knip does not follow.
44+
"platform/design-system/styles/theme.css",
45+
// Foundation for the organization redesign. Remove each once a page imports it.
4446
"app/o/[[]organizationId[]]/_redesign/redesign-host.tsx",
45-
"platform/app/(shell)/_components/notification-tray/notification-tray.tsx",
47+
"platform/app/[(]shell[)]/_components/**/*.{ts,tsx}",
48+
"platform/lib/time.ts",
4649
// Compile-time fixture compatibility assertion, included by tsconfig.
4750
"lib/table/fixture-contract.ts",
4851
// scripts/generate-docs.ts imports this through pathToFileURL.

‎scripts/check-platform-css.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import postcss from 'postcss'
55
import { describe, expect, it } from 'vitest'
6-
import embed from '../apps/sim/lib/postcss/platform-embed.cjs'
6+
import embed from '@/lib/postcss/platform-embed.cjs'
77
import { findEntryEscapes, findModuleEscapes } from './check-platform-css'
88

99
const ENTRY = '/repo/apps/sim/platform/design-system/styles/embedded.css'

0 commit comments

Comments
 (0)