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

[Proposal] Add noCheck scripts and use it in our publish_test_package CI script #1553

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

peaBerberian
Copy link
Collaborator

When debugging an application, we often have to do quick and dirty updates to the RxPlayer code.

When doing this, TypeScript's type-checking can get in the way - and what could amount to a few-seconds-update finally can take a few minutes just to make TypeScript happy.

Thankfully, TypeScript 5.6, which I just updated the project to, has now a --noCheck option allowing to skip type checking.

I consequently:

  • added the build:noCheck an build:dev:noCheck npm scripts to the package.json
  • added a new --no-check/-n flag to our scripts/generate_build.mjs script
  • Made our publish_test_package CI script now rely on the noCheck variant, as this is mainly used for quick and dirty checks and as another CI check is there for type-checking anyway.

There's maybe other places where we could skip checks.

When debugging an application, we often have to do quick and dirty
updates to the RxPlayer code.

When doing this, TypeScript's type-checking can get in the way - and
what could amount to a few-seconds-update finally can take multiple
minutes just to make TypeScript happy.

Thankfully, [TypeScript 5.6](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/),
which I just updated the project to, has now a [`--noCheck` option](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#the---nocheck-option)
allowing to skip type checking.

I consequently:
 - added the `build:noCheck` an `build:dev:noCheck` npm scripts to the
   `package.json`
 - added a new `--no-check`/`-n` flag to our `scripts/generate_build.mjs`
   script
 - Made our publish_test_package CI script now rely on the `noCheck`
   variant, as this is mainly used for quick and dirty checks and as
   another CI check is there for type-checking anyway.

There's maybe other places where we could skip checks.
@peaBerberian peaBerberian added the proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it label Sep 24, 2024
@peaBerberian peaBerberian added this to the 4.2.0 milestone Sep 24, 2024
@peaBerberian peaBerberian merged commit f5e5ccb into dev Sep 24, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants