Skip to content

Add a typecheck script and wire it into CI ahead of lint/test/buildΒ #188

Description

@Jagadeeshftw

πŸ“Œ Description

package.json's scripts cover dev, build, start, lint, test, and test:coverage, but there's no standalone tsc --noEmit script β€” type errors are currently only caught incidentally during next build's own type-checking pass, mixed in with the build step rather than as a fast, isolated CI check.

🧩 Requirements and context

  • Add a typecheck script to package.json running tsc --noEmit (or the project's equivalent strict-check invocation).
  • Wire the new script into the CI workflow so it runs early (before or alongside lint/test), giving fast feedback on type errors without waiting for a full next build.
  • No change to the existing build script's own type-checking behavior.

πŸ› οΈ Suggested execution

  • Add a "typecheck": "tsc --noEmit" entry to package.json's scripts.
  • Update the repository's CI workflow (the pull-request workflow covered elsewhere in this project's issue backlog, or whichever workflow file currently runs lint/test/build) to add a typecheck step.

βœ… Acceptance criteria

  • A typecheck script exists in package.json and runs cleanly against the current codebase.
  • CI runs the typecheck step on pull requests.

πŸ”’ Security notes

No new attack surface; a developer-tooling/CI task.

πŸ“‹ Guidelines

  • Minimum 95% test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions