Add separate tsconfig files for building and type checking.

Review Request #13587 — Created Feb. 28, 2024 and submitted

Information

Ink
master

Reviewers

tsconfig.json has now been split into two files:

  1. tsconfig.json, which handles basic type checking for src/ink/js/
    and src/stories/.

  2. tsconfig.build.json, which handles the actual build process for
    d.ts files, limited to src/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 in node_modules.

Successfully built the TypeScript codebase, and verified it was limited
to Ink code.

Verified that type checking still worked in story files.

Summary ID
Add separate tsconfig files for building and type checking.
`tsconfig.json` has now been split into two files: 1. `tsconfig.json`, which handles basic type checking for `src/ink/js/` and `src/stories/`. 2. `tsconfig.build.json`, which handles the actual build process for `d.ts` files, limited to `src/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 in `node_modules`.
f20ad2c01099d0a61e1e42cf8b2c3d49308675d4
david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (664fa8a)