Skip to content

chore: refactor packages#7923

Closed
tomdavies73 wants to merge 7 commits into
masterfrom
refactor_packages
Closed

chore: refactor packages#7923
tomdavies73 wants to merge 7 commits into
masterfrom
refactor_packages

Conversation

@tomdavies73

Copy link
Copy Markdown
Contributor

Proposed behaviour

Current behaviour

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

@tomdavies73 tomdavies73 self-assigned this Apr 24, 2026
@tomdavies73 tomdavies73 added DO NOT MERGE Work in progress This is a WIP PR so may not be ready for review POC proof of concept PR labels Apr 24, 2026
file-loader, url-loader and css-loader are webpack-specific and have
no imports anywhere in the codebase. The project uses Rollup and Vite.
- @types/jest: jest v29+ ships its own type declarations
- @types/uuid: uuid v14 ships its own type declarations
- @types/sinon: sinon is not installed in this project (only
  @sinonjs/* scoped packages are present)
@storybook/addon-essentials already depends on and registers
addon-actions, addon-controls, addon-toolbars and addon-viewport.
Explicitly listing them is redundant at the same version pin.

Removed from both devDependencies and the addons[] array in
.storybook/main.ts.
isFragment() was the only usage of react-is. Replaced with an inline
isValidElement(x) && x.type === Fragment check in both call sites,
sourcing Fragment directly from React.

Removes react-is and @types/react-is.
chalk was a runtime dependency used only in a dev-time script
(scripts/check_node_version.mjs) for a single red error message.
Replaced with a bare ANSI escape sequence (\x1b[31m...\x1b[0m).

Removes chalk from dependencies entirely.
node-fetch was used for a single fetch() call in
scripts/generate_metadata/generate_metadata.mjs. The project requires
Node >=24 which ships global fetch natively (available since Node 18).

Removes node-fetch from devDependencies entirely.
@tomdavies73 tomdavies73 closed this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE POC proof of concept PR Work in progress This is a WIP PR so may not be ready for review

Development

Successfully merging this pull request may close these issues.

1 participant