Skip to content

move from vite to tsdown for building libraries#356

Open
amarant wants to merge 1 commit into
mainfrom
tsdown
Open

move from vite to tsdown for building libraries#356
amarant wants to merge 1 commit into
mainfrom
tsdown

Conversation

@amarant

@amarant amarant commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Vite is not a tool optimized for building librairies, it makes us create big, complex and fragile vite.config where we list all dependencies, invoque the dts plugin manually. Tsdown is the preferred tool for that and from the same team with the same maturity.
Here we move from vite to tsdown for all 3 libs, and keep vite for the demo.
We also add publint check to validate the lib builds.

chore: update dev dependencies across packages

  • Refactored tests in svg-utils.test.ts for improved style formatting.
  • Added ESLint disable comments in network-map.tsx to prevent warnings related to state updates in effects.

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

Build tool changes.

What is the current behavior?

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

@amarant amarant force-pushed the tsdown branch 6 times, most recently from 0f9ef8d to 5f01c98 Compare March 23, 2026 10:07
@rolnico rolnico requested a review from sBouzols March 24, 2026 09:11
@amarant amarant force-pushed the tsdown branch 2 times, most recently from 418107b to b1f0605 Compare April 7, 2026 08:20
Comment thread packages/network-map-layers/tsdown.config.ts Outdated
Comment thread packages/network-viewer-core/tsdown.config.ts Outdated
Comment thread tsdown.config.ts Outdated
@amarant amarant force-pushed the tsdown branch 6 times, most recently from 34e8c30 to 0860fe3 Compare April 15, 2026 13:03
@sonarqubecloud

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

chore:
- update dev dependencies across packages
- Refactored tests in svg-utils.test.ts for improved style formatting.
- Added ESLint disable comments in network-map.tsx to prevent warnings related to state updates in effects.
- Update license header year 2025 -> 2026 on new files

Signed-off-by: Arnaud Marant <arnaud.marant@rte-france.com>
@sonarqubecloud

Copy link
Copy Markdown

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