-
Notifications
You must be signed in to change notification settings - Fork 504
noEmit and skipLibCheck should be on by default in TS compiler options #529
Copy link
Copy link
Closed
Labels
kind: featureNew feature or requestNew feature or requestkind: optimizationPerformance, space, size, etc improvementPerformance, space, size, etc improvementscope: templatesRelated to an init template, not necessarily to core (but could influence core)Related to an init template, not necessarily to core (but could influence core)
Description
This is a related issue to #352. The build script works with rollup.js, not tsc, so the noEmit option should be enabled by default. Users running npx tsc shouldn't expect to have to specify --noEmit, because using tsc is a normal part of TS development. Currently npx tsc will clutter the src directory with transpiled files, which can be difficult to clean up if there are uncommitted changes mixed in.
This is important because without tsc there is no way to do project-wide type checking. The build script will only stop at the first error. The test runner will report errors, but only for files that are tested, and it's also the wrong place for type checking (#521).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: featureNew feature or requestNew feature or requestkind: optimizationPerformance, space, size, etc improvementPerformance, space, size, etc improvementscope: templatesRelated to an init template, not necessarily to core (but could influence core)Related to an init template, not necessarily to core (but could influence core)