Skip to content

fix(web): emit @solidjs/web/storage types at the advertised path#2875

Merged
ryansolid merged 1 commit into
solidjs:nextfrom
thribhuvan003:fix/solid-web-storage-types
Jul 13, 2026
Merged

fix(web): emit @solidjs/web/storage types at the advertised path#2875
ryansolid merged 1 commit into
solidjs:nextfrom
thribhuvan003:fix/solid-web-storage-types

Conversation

@thribhuvan003

@thribhuvan003 thribhuvan003 commented Jul 11, 2026

Copy link
Copy Markdown

fixes #2873

package.json says @solidjs/web/storage types live at storage/types/index.d.ts, but the storage tsbuild had rootDir: "..", so tsc put them under storage/types/storage/src/ and consumers couldn't resolve the module.

pointed rootDir at ./src and clear storage/types in types:clean. emit path after the fix is types/index.d.ts.

@changeset-bot

changeset-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 53f2bce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

storage tsconfig used rootDir "..", so tsc wrote types/storage/src/index.d.ts
instead of types/index.d.ts that package.json exports. also clear storage/types
on types:clean.
@thribhuvan003
thribhuvan003 force-pushed the fix/solid-web-storage-types branch from 247e49d to 53f2bce Compare July 11, 2026 14:36
ryansolid added a commit that referenced this pull request Jul 13, 2026
…tsbuild

Follow-up to #2875: rootDir ./src alone fails — the paths mapping pulled
../../src/index.ts into the program, and .ts inputs outside rootDir are a
hard error. Pointing the mapping at ../../types/index.d.ts (built earlier
in the types pipeline) keeps the program self-contained so the emit lands
at storage/types/index.d.ts as advertised. Fixes #2873.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ryansolid
ryansolid merged commit 66316e0 into solidjs:next Jul 13, 2026
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.

2 participants