A base TSConfig for working with Node 14.
84
Build a command-line tool that generates appropriate TypeScript configuration files for different Node.js runtime versions.
Your tool should accept a Node.js version number as input and generate a tsconfig.json file with compiler options appropriate for that Node.js version. The tool should support Node.js versions from 10 through 24, as well as a special "lts" mode that targets the current LTS version.
Different Node.js versions support different ECMAScript features and module systems. Your tool should apply the following rules:
Target ECMAScript Version:
Module System:
Module Resolution:
Library Definitions:
All generated configurations must include these foundational options:
The tool should:
tsconfig.json file in the current directory@generates
/**
* Generates a TypeScript configuration for a specific Node.js version
*/
export function generateConfig(nodeVersion: string): object;
/**
* Main entry point for the CLI tool
*/
export function main(args: string[]): void;Provides TypeScript configuration for Node.js 14.
Provides TypeScript configuration for Node.js 20.
Provides TypeScript configuration for Node.js 22.
Install with Tessl CLI
npx tessl i tessl/npm-tsconfig--node14docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10