Skip to content

Conversation

BenOsodrac
Copy link
Contributor

@BenOsodrac BenOsodrac commented Sep 4, 2025

Issue number: internal


What is the new behavior?

This pull request updates the design token build pipeline to support Style Dictionary v5 and modernizes the scripts by migrating them to ES modules. The changes ensure compatibility with the latest dependencies and improve maintainability by refactoring the build scripts and utilities.

Dependency and Build Pipeline Updates:

  • Upgraded outsystems-design-tokens to version ^1.3.2 and style-dictionary to version ^5.0.0 in package.json to support the latest features and fixes.
  • Updated the build.tokens npm script to use the new ES module entry point (index.mjs) instead of the old CommonJS file (index.js).

Migration to ES Modules:

  • Migrated the main design token build script from index.js to index.mjs, refactoring imports/exports and adjusting to Style Dictionary v5 API changes. [1] [2]
  • Renamed and refactored the utility functions file from utils.js to utils.mjs, converting all utility functions to ES module exports for compatibility. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Style Dictionary Configuration and Output Improvements:

  • Adjusted the Style Dictionary configuration and format registration to match the new API, including changes to file header handling and output structure for SCSS variables and utility classes.

  • Changed variable prefix to --token

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 type: bug a confirmed bug report dependencies Pull requests that update a dependency file labels Sep 4, 2025
Copy link

vercel bot commented Sep 4, 2025

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

Project Deployment Preview Comments Updated (UTC)
ionic-framework Ready Ready Preview Comment Sep 5, 2025 2:20pm

@BenOsodrac BenOsodrac changed the title feat(tokens0) - modernize scripts and change prefix to --token feat(tokenss) - modernize scripts and change prefix to --token Sep 4, 2025
@BenOsodrac BenOsodrac changed the title feat(tokenss) - modernize scripts and change prefix to --token feat(tokens) - modernize scripts and change prefix to token Sep 4, 2025
@BenOsodrac BenOsodrac changed the title feat(tokens) - modernize scripts and change prefix to token feat(tokens): modernize scripts and change prefix to token Sep 4, 2025
@BenOsodrac BenOsodrac merged commit 9f546ed into next Sep 5, 2025
49 checks passed
@BenOsodrac BenOsodrac deleted the ROU-12099-v2 branch September 5, 2025 14:35
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: bug a confirmed bug report type: feature request a new feature, enhancement, or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants