Type-check TypeScript¶
Bash
npx tsc --noEmit
# or
task build
- Type-checks
.tsfiles insrc/without emitting any output files. - The following modules are explicitly listed in
tsconfig.json:src/torch/**/*,src/gaslets/**/* gears,jestlite, andremnantflickerare type-checked via import chain fromsrc/index.ts.- Settings are configured in
tsconfig.json(target: ES2020, module: ESNext, moduleResolution: bundler).
task buildis a type-check only step. To produce the GAS bundle, usetask bundleinstead.
References¶
tsconfig.json— TypeScript compiler optionspackage.json— npm scripts