Skip to content

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Oct 14, 2025

Closes #150

Calling it a minor version because it adds a new export but shouldn't break anything existing.

📦 Published PR as canary version: 4.0.0--canary.151.18511380774.0

✨ Test out this PR locally via:

npm install @oxide/design-system@4.0.0--canary.151.18511380774.0
# or 
yarn add @oxide/design-system@4.0.0--canary.151.18511380774.0

@david-crespo david-crespo added the minor Increment the minor version when merged label Oct 14, 2025
@david-crespo david-crespo changed the title Try giving components/ui its own export that excludes asciidoc Split /components export into /asciidoc and /ui Oct 14, 2025
package.json Outdated
"typings": "./dist/components/index.d.ts",
"module": "./dist/components/index.js",
"typings": "./dist/components/src/asciidoc/index.d.ts",
"module": "./dist/components/src/asciidoc/index.js",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kind of janky since there isn't really one thing for the whole library. Same problem with the . thing below — it means import '@oxide/design-system' gets you asciidoc. I guess that's fine? Can we leave that dot out and just make it so you can't import the library without a path like that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it by deleting it. Unqualified import is rejected by both TS and build as expected.

image image

@david-crespo david-crespo added major Increment the major version when merged and removed minor Increment the minor version when merged labels Oct 14, 2025
@david-crespo david-crespo marked this pull request as ready for review October 14, 2025 22:23
@david-crespo
Copy link
Collaborator Author

Confirmed this fixes the problem: oxidecomputer/console#2910 (comment)

@david-crespo david-crespo merged commit 2d9ac13 into master Oct 15, 2025
3 checks passed
@david-crespo david-crespo deleted the ui-no-adoc-export branch October 15, 2025 01:05
Copy link
Contributor

🚀 PR was released in v4.0.2 🚀

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

Labels

major Increment the major version when merged released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split asciidoc from UI components

2 participants