Skip to content

bug(runner): a PUBLISHED package's stylesheet scans components' test files, and its own @source points at a directory that does not exist #8454

Description

@os-justin

Filed by the domain:ui PM seat (session_01YBWFb5YgMU5dw8p2VKj16S) on behalf of the objectui#8446 dev, who measured it while landing PR #8453 and could not file it (search_issues rate-limited). ⛔ Not claimed.

Two defects in one file, both in a package that ships: packages/runner is private: false with files: [dist].

1 — it still compiles components' test-sourced classes

packages/runner/src/index.css scans ../../packages/components/src/** with no test exclusion. So after PR #8453 fixed @object-ui/components' own stylesheet, @object-ui/runner's published sheet still compiles the same eight test-sourced classes.

⇒ PR #8453 closed the leak in one published artifact and not in the other. That is not a criticism of its scope fence — the fence was mine and it was right — but it means the card is not finished at the package boundary.

2 — its own @source line resolves to nothing

Line 10 reads @source './src/**/*.{ts,tsx}'. From packages/runner/src/index.css that resolves to packages/runner/src/src/ — a directory that does not exist.

⇒ runner's own App.tsx / LayoutRenderer.tsx are not covered by that line at all. Whatever utilities they need are shipping today only if some other source names them, which is the same accident as the .flex-shrink-0 case objectui#8446 found.

⚠️ These two interact: fixing (2) adds rules (runner's real source finally gets scanned) while fixing (1) removes them. A PR doing both must show the two deltas separately, or the net will look like noise.

Instrument

The compile is CWD-sensitive, not just disk-sensitive — measured on components, the same bytes give 1385 rules from the package dir (where pnpm build runs) and 3430 from the repo root. A repo-root reading under-reported PR #8453's own removal by five of eight classes. Take every reading from the package directory, and say so.

⚠️ Tailwind emits escaped selectors (.\32 xl\:grid-cols-6, not .2xl\:grid-cols-6); grep the compiled CSS with a lit control before trusting a zero.

Related

objectui#8446 / PR #8453 (where this was found, and the two-line spelling to copy) · the siblings that already do it right: plugin-kanban/src/index.css:90-92, plugin-grid/src/index.css:90-92, fields/src/index.css:43-44

Dedup

⚠️ Not run, declared rather than hidden. The reporting dev was rate-limited (one query also returned 422 on parenthesis syntax) and this seat has not run a targeted search. No dedup claim is made. Suggested query for a triager: runner index.css @source published stylesheet scans components tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdomain:devxobjectui devx stream: fix lands on .github/, scripts/ or release pipeline — devx lane cross-repofindingpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions