Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move design tokens in to packages directory (#128)
## **Description** This pull request moves the design tokens from the `merged-packages/` directory to the `packages/` directory in the design system monorepo following steps 1-5 of [Phase C: Integration into the metamask module template's packages/ directory](https://github.com/MetaMask/metamask-design-system/blob/main/docs/package-migration-process-guide.md#pr13-phase-c-integration-into-the-metamask-module-templates-packages-directory). ## **Steps Performed** - Moved design-tokens directory from `merged-packages/` to `packages/`. - Ran `yarn install` in the root directory to update dependencies. - Verified tests in the design-tokens package by executing `yarn workspace @metamask/design-tokens test`. - Updated `tsconfig.json` and `tsconfig.build.json` in the root directory with reference paths to design-tokens to avoid build failures during release workflows. - Updated the design-tokens version across downstream packages and root to workspace version - Applied `yarn constraints --fix` to the design-tokens `package.json`. - Included the `changelog:validate` build script in the `package.json`. - For complex type issues, annotated with `// TODO: Replace any types with proper types https://github.com/MetaMask/metamask-design-system/issues/127` - Documented changes in the migration target's downstream packages under the `## [Unreleased]` heading in their respective CHANGELOG files. ## **Related Issues** - Fixes: #126 ## **Manual Testing Steps** 1. Run `yarn install`, `yarn test` and `yarn build` in the root directory to confirm the migration does not break the build. 2. Verify downstream dependencies reference the correct paths and versions. 3. Check CHANGELOG updates for consistency. 4. Check storybook works for web and ios `yarn storybook` `yarn storybook:ios` ## **Screenshots/Screen recordings** ### After Storybook works for both web and ios https://github.com/user-attachments/assets/8424cb16-8f93-4080-97a6-546220d389ae https://github.com/user-attachments/assets/46426d49-7d13-41cc-948b-7336618635b4 ## **Pre-merge Author Checklist** - [x] Followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs). - [x] Ensured all PR status checks passed at least once. - [x] Updated relevant CHANGELOG files. - [x] Applied appropriate labels and linked issues. ## **Pre-merge Reviewer Checklist** - [ ] Verified manual tests for the build and migration. - [ ] Reviewed CHANGELOG entries and downstream dependency updates. - [ ] Checked for unresolved TODOs in the codebase.
- Loading branch information