Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update align dependencies and update build scripts in design tokens #115

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

georgewrmarshall
Copy link
Contributor

Description

This PR resolves Issue #108 by aligning the dependencies and build scripts in the target package with the monorepo's root configuration as part of the design tokens migration process. Following the Package Migration Process Guide

Related issues

Fixes: #108

Manual testing steps

  1. Verify that all unnecessary dependencies have been removed

Pre-merge author checklist

  • I've followed MetaMask Contributor Docs
  • I've completed the PR template to the best of my ability.
  • I’ve included tests if applicable.
  • I’ve documented my code using JSDoc format if applicable.
  • I’ve applied the appropriate labels to the PR.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g., pulled and built the branch, checked the app, and verified updated configurations).
  • I confirm that this PR addresses all acceptance criteria described in issue migrate design tokens: Replace config files #106 and includes necessary testing evidence such as recordings or screenshots.

@georgewrmarshall georgewrmarshall self-assigned this Nov 14, 2024
@georgewrmarshall georgewrmarshall marked this pull request as ready for review November 14, 2024 23:20
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner November 14, 2024 23:20
Copy link

socket-security bot commented Nov 14, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/@lavamoat/[email protected], npm/[email protected]

View full report↗︎

@georgewrmarshall georgewrmarshall changed the title Fix/108/update build scripts chore: update align dependencies and update build scripts in design tokens Nov 14, 2024
@@ -3,44 +3,18 @@
* https://jestjs.io/docs/configuration
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating jest config to align with packages jest config

Comment on lines -20 to +27
"types": "./dist/types/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating to align with packages we are not changing the exports because we are still exporting the types folder on line 34

"build": "tsup --clean && yarn build:types && yarn build:css",
"build-storybook": "storybook build",
"build:clean": "rimraf dist && yarn build",
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references && yarn build:css",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating build to use ts-bridge and align with other packages, I assume types get build as well but keeping the css build

"tsup": "^7.2.0",
"typescript": "~5.2.2",
"vite": "^5.2.10"
"typescript": "~5.2.2"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing all unneeded dependencies but keeping typescript to align with other packages package.json

brianacnguyen
brianacnguyen previously approved these changes Nov 14, 2024
@georgewrmarshall georgewrmarshall merged commit 0b8ca68 into main Nov 15, 2024
26 checks passed
@georgewrmarshall georgewrmarshall deleted the fix/108/update-build-scripts branch November 15, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migrate design tokens: Align dependencies and build scripts with monorepo
2 participants