Title: Terse mode output from `tsc --build` · Issue #25562 · microsoft/TypeScript · GitHub
Open Graph Title: Terse mode output from `tsc --build` · Issue #25562 · microsoft/TypeScript
X Title: Terse mode output from `tsc --build` · Issue #25562 · microsoft/TypeScript
Description: Search Terms tsc --build mode console logging output verbose Suggestion Have a middle-ground between verbose and "nothing" when running tsc -b Use Cases Initial feedback was that "tsc -b should print nothing by default (if there are no e...
Open Graph Description: Search Terms tsc --build mode console logging output verbose Suggestion Have a middle-ground between verbose and "nothing" when running tsc -b Use Cases Initial feedback was that "tsc -b should pri...
X Description: Search Terms tsc --build mode console logging output verbose Suggestion Have a middle-ground between verbose and "nothing" when running tsc -b Use Cases Initial feedback was that "ts...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Terse mode output from `tsc --build`","articleBody":"## Search Terms\r\n\r\ntsc --build mode console logging output verbose\r\n\r\n## Suggestion\r\n\r\nHave a middle-ground between `verbose` and \"nothing\" when running `tsc -b`\r\n\r\n## Use Cases\r\n\r\nInitial feedback was that \"`tsc -b` should print nothing by default (if there are no errors)\", which is a reasonable first principle to work from. However, it's nice to have some rough idea of what's going on, especially because a `tsc -b` invocation might take quite a while, depending on what's up to date.\r\n\r\nUsers today can get more output by running with `--verbose`, which prints some fairly detailed spew:\r\n```\r\nmessage TS6350: Project 'tsconfig.json' is out of date because oldest output 'lib/fetch.js' is older than newest input 'src/fetch.ts'\r\n```\r\nThe `verbose` output was written primarily as an \"Explain *why* something is happening\"; there is no in-between setting that says simply \"Explain *what* is happening\".\r\n\r\nThis is compounded under `--watch` where `tsc -b` prints errors, but doesn't print \"No errors\", so you can't really know if your compilation succeeded or if tsc simply missed a file change.\r\n\r\n## Proposal\r\n\r\n`--terse` strikes a middle ground between the default (silent) and `verbose`. Its short name would be `-t` which doesn't conflict with anything I can think of adding in the near term.\r\n\r\n## Examples\r\n\r\n```\r\n> tsc -b -t src\r\nmessage TS6350: 'src/compiler' is up-to-date\r\nmessage TS6350: 'src/services' is up-to-date\r\nmessage TS6351: Building 'src/server'...\r\nmessage TS6351: Building 'src/tests'...\r\nmessage TS6352: Build completed\r\n```\r\n\r\n```\r\n> tsc -b -t -w src\r\nmessage TS6350: All projects are up to date\r\nmessage TS6351: 'src/compiler' was modified, building...\r\n\r\nsrc/compiler/parser.ts:21:1 - error TS1128: Declaration or statement expected.\r\n\r\n21 ?\r\n ~\r\n\r\nmessage TS6351: 'src/compiler' was modified, building...\r\nmessage TS6351: Building 'src/server'...\r\nmessage TS6351: Building 'src/tests'...\r\nmessage TS6352: All projects are up to date\r\n```\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n* [x] This wouldn't be a breaking change in existing TypeScript / JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. new expression-level syntax)\r\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2018-07-10T20:49:13Z","url":"https://github.com/microsoft/TypeScript/issues/25562"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4f619600-6e11-6f1e-afde-141328ca1129 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B142:38C5CF:2B17452:36A506C:6B018FA0 |
| html-safe-nonce | 62094d534a58adaa2e4fbb17f4384af2a62bb7abf669fcb149411798c0730f08 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQyOjM4QzVDRjoyQjE3NDUyOjM2QTUwNkM6NkIwMThGQTAiLCJ2aXNpdG9yX2lkIjoiNTA4NTE0NjUyMDM5NTgxMjc2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4e6e60ec7969229da255fe79450078623c62a253ee2e0c3e19f301548216d53 |
| hovercard-subject-tag | issue:340001618 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/25562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/864b45ef884c4a39e50749da99eaa5e22ea6ffe6caa575ddf1a31f3d0be6644d/microsoft/TypeScript/issues/25562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/864b45ef884c4a39e50749da99eaa5e22ea6ffe6caa575ddf1a31f3d0be6644d/microsoft/TypeScript/issues/25562 |
| og:image:alt | Search Terms tsc --build mode console logging output verbose Suggestion Have a middle-ground between verbose and "nothing" when running tsc -b Use Cases Initial feedback was that "tsc -b should pri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width