Add separate tsconfig files for building and type checking.
Review Request #13587 — Created Feb. 28, 2024 and submitted — Latest diff uploaded
tsconfig.json
has now been split into two files:
tsconfig.json
, which handles basic type checking forsrc/ink/js/
andsrc/stories/
.
tsconfig.build.json
, which handles the actual build process for
d.ts
files, limited tosrc/ink/js/
.When we run
tsc
to generate the type file, we limit this to
tsconfig.build.json
. This ensures we only generate types for Ink, and
not for any story files or anything innode_modules
.
Successfully built the TypeScript codebase, and verified it was limited
to Ink code.Verified that type checking still worked in story files.