-
Notifications
You must be signed in to change notification settings - Fork 72
LG-5740 fix(LoadingIndicator) fixes spinner type references #3315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 778f126 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes TypeScript type resolution issues for the loading-indicator package by correcting the casing in type definition paths within package.json exports. The paths now properly reference the PascalCase component directories (Spinner and PageLoader) instead of kebab-case, aligning with the actual build output structure.
Key Changes:
- Updated type definition paths to use correct PascalCase directory names
- Applied fix to both current TypeScript and legacy TypeScript 4.9 type paths
- Added changeset documentation for the patch release
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/loading-indicator/package.json | Corrected type definition paths from kebab-case to PascalCase for spinner and page-loader exports |
| .changeset/loading-spinner-types.md | Added changeset documentation describing the TypeScript type resolution fix |
| "types": "./dist/types/Spinner/index.d.ts", | ||
| "types@<=5.0": "./dist/types/ts4.9/Spinner/index.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our TS builds don't change the case of subdirectories
|
Size Change: +1.39 kB (+0.08%) Total Size: 1.79 MB
ℹ️ View Unchanged
|
|
Coverage after merging LG-5740-loading-spinner-types into main will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
✍️ Proposed changes
'@leafygreen-ui/loading-indicator': patch
Fixes types reference file in
package.json. Importing{ Spinner } from "@leafygreen-ui/loading-indicator/spinner"should no longer result in TS errors