Skip to content

build: drop containers and build with host Node.js - #202

Merged
andre8244 merged 5 commits into
mainfrom
build/vite-config-deprecations
Oct 13, 2026
Merged

andre8244 merged 5 commits into
mainfrom
build/vite-config-deprecations

Conversation

@andre8244

@andre8244 andre8244 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator
  • Build the library and Storybook directly on the CI runner with the Node.js version from .nvmrc; remove Containerfile, build.sh, dev.sh and the devcontainer.
  • Limit Tailwind source detection to src/ for the library build, and add stories explicitly to the Storybook CSS, so no extra classes leak into dist.
  • Document the nvm-based setup in CONTRIBUTING.md and recommend VS Code extensions via .vscode/extensions.json.
  • Fix Vite 8 config deprecations (import.meta.dirname, build.rolldownOptions).
  • Pin all runners to ubuntu-26.04.

Verified that dist/main.css, the ESM bundle and the type declarations are byte-identical to the container build. The UMD bundle no longer includes four unused rules (.rotate-*, .shrink) that the vite 8 container build leaked. Tested in my with type-check, build and unit tests.

Use import.meta.dirname instead of __dirname, which Vite 8 warns about
when loading the config, and rename build.rollupOptions to
build.rolldownOptions, deprecated since Vite 8. The built dist output
is unchanged.

Assisted-by: Claude Code:Opus 5.5
Use import.meta.dirname instead of __dirname, which Vite 8 warns about
when loading the config. The playground build output is unchanged.

Assisted-by: Claude Code:Opus 5.5
Develop with the host Node.js version pinned in .nvmrc instead of the
dev container, and document the nvm setup in CONTRIBUTING.md. Remove
the now unused dev stage from the Containerfile. The container builds
used by CI and releases are unchanged.

Recommend the VS Code extensions needed by the project through
.vscode/extensions.json.

Assisted-by: Claude Code:Opus 5.5
Build the library and the Storybook directly on the CI runner, with
the Node.js version from .nvmrc, as in local development.

Without the container, Tailwind's automatic source detection would
also scan the stories and the playground: limit it to src/ for the
library, and add the stories explicitly to the Storybook CSS.

Assisted-by: Claude Code:Opus 5.5
@andre8244
andre8244 requested review from Tbaile and stephdl October 8, 2026 15:41

@stephdl stephdl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pin all runners to ubuntu-24.04.

is there any reason, why not ubuntu-26.04

Replace ubuntu-latest and ubuntu-24.04 with ubuntu-26.04, generally
available on GitHub Actions since September 2026, in all workflows.
Runner upgrades then come as Renovate PRs tested by the CI, instead
of happening when GitHub moves ubuntu-latest.

Assisted-by: Claude Code:Opus 5.5
@andre8244
andre8244 force-pushed the build/vite-config-deprecations branch from 57d2ee5 to 104b361 Compare October 8, 2026 16:07
@andre8244

Copy link
Copy Markdown
Collaborator Author

Pin all runners to ubuntu-24.04.

is there any reason, why not ubuntu-26.04

You're right! I'll amend the commit

@andre8244
andre8244 requested a review from stephdl October 9, 2026 07:51

@stephdl stephdl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

thank you

@andre8244
andre8244 merged commit fb43f71 into main Oct 13, 2026
4 checks passed
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.

3 participants