chore: convert @packages/icons
to a compiled package and convert tests to vitest
#32649
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
Converts
@packages/icons
to use vitest and removes the ts-node entrypoint making ESM possible. The tests before weren't actually being run in CI. This adds the icons package to the test script so the tests are now executedSteps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?Note
Compiles
@packages/icons
with CJS/ESM entrypoints, migrates tests to Vitest, and adds the package to the root test run while updating related configs/docs.index.js
(CJS) andindex.mjs
(ESM); introducetsconfig.cjs.json
/tsconfig.esm.json
and sharedtsconfig.base.json
; updatepackage.json
scripts (build
,build-assets
,build:cjs
,build:esm
) and fields (module
,types
); usetsx
for build scripts; adjust dist path inindex.ts
.vitest.config.ts
, newtest/icons.spec.ts
), remove oldtest/icons_spec.ts
; switchtest-unit
tovitest run
; add ignore rules for built artifacts.@packages/icons
in top-leveltest
script.guides/esm-migration.md
to markpackages/icons
as completed and tidyhttps-proxy
entries.Written by Cursor Bugbot for commit 549af08. This will update automatically on new commits. Configure here.