ReviewOS

also looking at this

stacks/ts-analytics

chore: remove subdir-resolve workaround plugin (core handles it now)

#122
Merged glennmichael123 wants to merge chore/remove-subdir-resolve-workaround into main
2 files +6 -17
stx-app-components.plugin.tsdeleted+0-16
Changes to stx-app-components.plugin.ts
@@ -1,16 +0,0 @@
1// Registers the app's own `resources/components` tree as a component source.
2//
3// Why this exists: stx 0.2.72 searches the configured `componentsDir` FLAT —
4// only its top level — so subdirectory kebab tags never resolve. Nearly all of
5// this app's components live in subdirs (`dashboard/`, `tabs/`), e.g.
6// `<site-selector>` → `resources/components/dashboard/SiteSelector.stx`. Without
7// this, the whole dashboard renders "Error loading component: ENOENT ...".
8//
9// Plugin component dirs, unlike `componentsDir`, ARE walked recursively by the
10// resolver (the same mechanism that lets `@stacksjs/components/src/ui/**`
11// resolve), so pointing one at `resources/components` makes the subdir tags
12// resolve again. See stx-components.plugin.ts for the library equivalent.
13export default {
14 name: 'app-components',
15 components: 'resources/components',
16}