-
Notifications
You must be signed in to change notification settings - Fork 67
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
Close #605: Disable type check for test, start, build commands in CI #606
Conversation
🦋 Changeset detectedLatest commit: 812156d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/modular-scripts/react-scripts/config/webpack.config.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments - I think a bit more abstraction around typescript configuration generation would be good. Couple of comment expansions would be useful too.
packages/modular-scripts/src/cli.ts
Outdated
|
||
program | ||
.command('typecheck') | ||
.option( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the use case for this? I would avoid adding any unnecessary APIs to this until we've got a better idea of when we'll need them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this as a way to silence error messages and provide a green/red light on typechecking. I'm impartial so I will remove for simplicity's sake.
Typechecks are run every time
start
,build
, andtest
are run within the CI environment. If it's a CI environment, we should disable typecheck. This will improve performance of each command.Because typecheck is enabled and performed during the local development start, build, and test runs, there is no need for the CI to rerun the check with every command in the CI pipeline. Typechecking should be its own step and done only once over the project within the CI environment.
modular typecheck
runs tsc over the project and should be used explicitly to typecheck the project as part of the SDLC process.Addressing #605