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

Offload npm scripts to a build.js #318

Closed
wants to merge 3 commits into from
Closed

Conversation

danyeaw
Copy link
Contributor

@danyeaw danyeaw commented Feb 11, 2025

This PR simplifies the package.json to move some of the build logic to a new build.js file. Tradeoffs considered:

  1. This increases the build system maintenance overhead
  2. It simplifies the package.json to make it more manageable
  3. It improves build performance to allow multiple build steps to happen in parallel (9.4s to 7.4s - 22% decrease)

This PR was originally part of #317, but I split it out to try to reduce the size of the PR and help troubleshoot CI build errors.

@danyeaw
Copy link
Contributor Author

danyeaw commented Feb 12, 2025

Although I got this working, I don't think maintaining the extra JavaScript is worth the small performance gain.

@danyeaw danyeaw closed this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant