upswyng icon indicating copy to clipboard operation
upswyng copied to clipboard

Simplify TypeScript config

Open rhinodavid opened this issue 5 years ago • 2 comments

The example I used for the TS setup had different tsconfig.json files for dev, build, etc. This is probably needed if one is relying on the TypeScript compiler to do the build, but since we use webpack (@u/web) and rollup (everything else) we don't need a bunch of different configs.

rhinodavid avatar May 09 '20 04:05 rhinodavid

i.e. consolidate to at most 1 tsconfig.json per package

rhinodavid avatar May 09 '20 04:05 rhinodavid

there's a few ways to do this but when looking between web & server there are differences in the inheritance

with a single shared base and a dev vs prod style shared common (just the 2 which is appropriate for use cases)

I don't know that this is worth the effort as it's already pretty clean if a 3rd+ compiled project gets added this would be worth revisiting to optimizing maintenance efforts

amites avatar Jul 02 '21 04:07 amites