Skip to content

✨ Improved generate-types script#3367

Open
SnaveSutit wants to merge 6 commits intoJannisX11:nextfrom
SnaveSutit:feature/improved-generate-types
Open

✨ Improved generate-types script#3367
SnaveSutit wants to merge 6 commits intoJannisX11:nextfrom
SnaveSutit:feature/improved-generate-types

Conversation

@SnaveSutit
Copy link
Copy Markdown
Contributor

@SnaveSutit SnaveSutit commented Mar 4, 2026

I got a little annoyed with having to manually re-run the generate-types script every time I made a change.

So here's an improved version!

Changes

  • Renamed convert_types.js -> generate_types.js.
  • Converted generate_types.js to TypeScript.
  • Added --watch argument to generate-types.
  • Fixed paths in the type_config.json excludedlist not actually being excluded.
  • Added note in ./types/README.md for --watch argument.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 4, 2026

Deploy Preview for blockbench-dev ready!

Name Link
🔨 Latest commit baa2e57
🔍 Latest deploy log https://app.netlify.com/projects/blockbench-dev/deploys/69a9a8b5fc103a0008d6f87a
😎 Deploy Preview https://deploy-preview-3367--blockbench-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@SnaveSutit SnaveSutit force-pushed the feature/improved-generate-types branch from 19f4c1a to 8d6469e Compare March 5, 2026 02:04
- Renamed `convert_types.js` -> `generate_types.js`.
- Converted `generate_types.js` to TypeScript.
- Added `--watch` argument to `generate-types`.
- Added support for Regex to the `excluded` list in `type_config.json`.
A list of files to keep, but not transform.
@SnaveSutit SnaveSutit force-pushed the feature/improved-generate-types branch from 8d6469e to baa2e57 Compare March 5, 2026 16:00
Copy link
Copy Markdown

@codeCraft-Ritik codeCraft-Ritik left a comment

Choose a reason for hiding this comment

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

Great contribution! The implementation is clean and integrates well with the existing codebase.

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.

2 participants