Skip to content

fix: restore subpath resolution for barrel directories - #22

Merged
hhvrc merged 1 commit into
masterfrom
fix/exports-subpath-resolution
Aug 20, 2026
Merged

hhvrc merged 1 commit into
masterfrom
fix/exports-subpath-resolution

Conversation

@hhvrc

@hhvrc hhvrc commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

#20 replaced the `"./*"` fallback array with a single `"./src/lib/*"`.
That was right to do — publint flags fallback arrays, and Node only ever
resolves the first entry, so the other two only worked because bundlers
implement them — but it also removed the `index.ts` resolution that every
directory subpath depended on. `@openshock/svelte-core/utils` names a
directory, so it stopped resolving entirely; the cloud frontend goes from
clean to 510 errors across 163 files on this package alone.

Enumerates the 53 barrel directories explicitly instead. `"./*"` stays for
direct file imports. Explicit subpaths beat patterns in Node's resolution
and each one names a real file, so `publint --strict` is clean and the
public surface is now deliberate rather than a side effect of globbing.

Generated from the barrels rather than hand-written, so it can be
regenerated the same way when components are added.
@hhvrc hhvrc self-assigned this Aug 20, 2026
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2f79bcd7-53b4-4fb8-be4b-97ee723b1d8a


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hhvrc
hhvrc merged commit 718b2e7 into master Aug 20, 2026
4 checks passed
@hhvrc
hhvrc deleted the fix/exports-subpath-resolution branch August 20, 2026 14:03
hhvrc added a commit that referenced this pull request Aug 20, 2026
Brings #20, #21 and #22 onto the migration branch.

package.json keeps this branch's `next` pins for `@sveltejs/kit` and
`@sveltejs/adapter-auto` while taking master's removal of
`@sveltejs/package`, which #20 dropped and nothing here uses.

pnpm-lock.yaml is regenerated from this branch's copy rather than master's,
so the SvelteKit 3 prereleases stay pinned and master's dependency changes
resolve on top.

eslint.config.js needed a fix git could not see: it imported
`./svelte.config.js` for the parser's `svelteConfig` option, and the
migration deleted that file in favour of vite.config.ts. The option is an
optimisation rather than a requirement, so it is dropped here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant