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

Consistently respect --no-typecheck flag in build #51575

Merged
merged 3 commits into from
Nov 17, 2022

Conversation

jakebailey
Copy link
Member

In previous PRs, we've been tweaking when typechecking happens in the new build system. It's currently the case that you get typechecking when you run local, min, or one of the runtests, but not when you run tsc, tsserver, lssl, etc.

Now that we have the --no-typecheck build flag, it seems like it makes more sense to have the default behavior be consistent across all of our tasks, opting for the safer choice of --typecheck.

I have changed our launch task to continue to not typecheck, as I think that's likely the most valuable place to pass this flag.

@@ -610,7 +611,7 @@ export const watchLocal = task({
dependencies: [localize, watchTsc, watchTsserver, watchServices, watchLssl, watchOtherOutputs, dts, watchSrc],
});

const runtestsDeps = [tests, generateLibs].concat(cmdLineOptions.typecheck ? [dts, buildSrc] : []);
const runtestsDeps = [tests, generateLibs].concat(cmdLineOptions.typecheck ? [dts] : []);
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the one odd case; when typechecking is disabled, I skip the dts task. This is how we can go fast for quick F5s.

Potentially, this should be its own flag for tasks.json instead.

@jakebailey jakebailey merged commit 8eed2ca into microsoft:main Nov 17, 2022
@jakebailey jakebailey deleted the make-typecheck-consistent branch November 17, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants