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

refactor: move type:check to lint hook #3381

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Rohit-Bhetal
Copy link

  • Removed type:check from pretest, build, and postbuild scripts
  • Added type checking to lint command
  • Improves development speed by reducing redundant type checks

Fixes #3248

Release notes

So the issue with slower development cycle is solved by using eslint for type check:

  • Description

    This PR moves the TypeScript type checking from the various build-related scripts (pretest, postbuild, etc.) to a dedicated lint script. This helps improve the development speed by reducing the number of redundant type checks performed during the build process.

Changes

  • Removed the type:check command from the pretest, build, and postbuild scripts in the various package.json files.
  • Added a new lint script that runs tsc --noEmit to perform the TypeScript type checking.
  • Updated the affected package.json files to use the new lint script instead of the previous type:check commands.

Benefits

  • Faster build and test times by removing redundant type checks.
  • Clearer separation of concerns, with type checking now isolated in the lint script.
  • Easier to maintain and update the type checking process in the future.

Breaking Changes

No significant risks are identified. The changes are limited to the package.json files and do not introduce any new functionality or change the core logic of the project.

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

- Removed type:check from pretest, build, and postbuild scripts
- Added type checking to lint command
- Improves development speed by reducing redundant type checks

Fixes FuelLabs#3248
Copy link

vercel bot commented Nov 11, 2024

@Rohit-Bhetal is attempting to deploy a commit to the Fuel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Nov 11, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
ts-docs-api ⬜️ Ignored (Inspect) Nov 14, 2024 0:05am

…st, build, and postbuild scripts- Added type checking to lint command- Improves development speed by reducing redundant type checksFixes FuelLabs#3248
Copy link
Author

@Rohit-Bhetal Rohit-Bhetal left a comment

Choose a reason for hiding this comment

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

Updated other package.json file also

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.

Altertype:check command
2 participants