You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a monorepo tool that will attempt to generate traces and leverage the analyze-trace tool to give users information about hotspots in their monorepo. Adding this to the tsconfig makes what this tool is trying to do a lot easier: monorepos may have hundreds of "typecheck": "tsc" package.json scripts, and it may not be feasible or desirable to modify them all.
π» Use Cases
What do you want to use this for?
metaprogramming for monorepo library diagnositcs
What shortcomings exist with current approaches?
Adding the CLI flag requires more complexity to support different package managers (yarn, pnpm, npm, etc.), whereas if a compilerOption existed, it'd be easier.
What workarounds are you using in the meantime?
In a repo I'm working with that has 500+ packages, I'm using find-and-replace to modify the typecheck commands in each package.
The text was updated successfully, but these errors were encountered:
@RyanCavanaugh@sheetalkamat hopefully it's not too presumptuous but I suddenly realized how quickly the 5.6 release is approaching (wow!) and given how small this change is I'm really hoping there's a way to fit it in while it's still Beta season: #59636
π Search Terms
generateTrace analyze-trace @typescript/analyze-trace
β Viability Checklist
β Suggestion
Would a PR be accepted to add
generateTrace
(the existing CLI option) to thetsconfig.json
'scompilerOptions
? Similar togenerateCpuProfile
being in both the CLI and the config.π Motivating Example
I am making a monorepo tool that will attempt to generate traces and leverage the analyze-trace tool to give users information about hotspots in their monorepo. Adding this to the tsconfig makes what this tool is trying to do a lot easier: monorepos may have hundreds of
"typecheck": "tsc"
package.json scripts, and it may not be feasible or desirable to modify them all.π» Use Cases
What do you want to use this for?
metaprogramming for monorepo library diagnositcs
What shortcomings exist with current approaches?
Adding the CLI flag requires more complexity to support different package managers (yarn, pnpm, npm, etc.), whereas if a compilerOption existed, it'd be easier.
What workarounds are you using in the meantime?
In a repo I'm working with that has 500+ packages, I'm using find-and-replace to modify the
typecheck
commands in each package.The text was updated successfully, but these errors were encountered: