Skip to content

Conversation

@BenOsodrac
Copy link
Contributor

@BenOsodrac BenOsodrac commented Sep 2, 2025

Issue number: internal


What is the new behavior?

This pull request updates the design token build pipeline to support ECMAScript modules and Style Dictionary v5, improves maintainability, and modernizes the codebase. The most important changes are grouped below:

Migration to ECMAScript Modules and Style Dictionary v5:

  • Migrated the design token build script from CommonJS (index.js) to ECMAScript modules (index.mjs), updating all imports/exports and adapting the code to Style Dictionary v5 format requirements. (core/scripts/tokens/index.js removed, core/scripts/tokens/index.mjs added) [1] [2]
  • Updated the build script reference in package.json to use the new index.mjs file for the build.tokens command.
  • Upgraded style-dictionary dependency from v4 to v5 in package.json to support the new module format and features.

Code Modernization and Refactoring:

  • Renamed utils.js to utils.mjs and converted all utility functions to use ES module exports, improving future compatibility and maintainability. (core/scripts/tokens/utils.js renamed and refactored to core/scripts/tokens/utils.mjs) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Design Token Package Update:

  • Updated outsystems-design-tokens dependency from v1.3.0 to v1.3.2 in package.json to ensure compatibility with the latest token definitions.

Does this introduce a breaking change?

  • Yes
  • No

@BenOsodrac BenOsodrac added type: feature request a new feature, enhancement, or improvement package: core @ionic/core package dependencies Pull requests that update a dependency file labels Sep 2, 2025
@vercel
Copy link

vercel bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ionic-framework Error Error Sep 3, 2025 8:32am

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

Labels

dependencies Pull requests that update a dependency file package: core @ionic/core package type: feature request a new feature, enhancement, or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants