CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tsconfig--node14

A base TSConfig for working with Node 14.

84

1.05x
Overview
Eval results
Files

task.mdevals/scenario-2/

TypeScript Configuration Manager

A utility that helps developers set up TypeScript configurations for different Node.js environments by creating properly configured tsconfig.json files.

Capabilities

Generates Base Configuration

  • Creates a tsconfig.json file that extends from a specified base configuration for Node.js 16 @test
  • Creates a tsconfig.json file that extends from a specified base configuration for Node.js 20 @test

Validates Configuration Files

  • Returns true when checking a valid tsconfig.json file that properly extends a base configuration @test
  • Returns false when checking an invalid tsconfig.json file that doesn't extend any base configuration @test

Implementation

@generates

API

/**
 * Generates a tsconfig.json file that extends from a base configuration
 * for a specific Node.js version.
 *
 * @param targetPath - The directory path where tsconfig.json will be created
 * @param nodeVersion - The Node.js version (e.g., "16", "20")
 * @returns Promise that resolves when the file is written
 */
export function generateConfig(targetPath: string, nodeVersion: string): Promise<void>;

/**
 * Validates whether a tsconfig.json file properly extends from a base configuration.
 *
 * @param configPath - The path to the tsconfig.json file to validate
 * @returns Promise that resolves to true if valid, false otherwise
 */
export function validateConfig(configPath: string): Promise<boolean>;

Dependencies { .dependencies }

@tsconfig/node16 { .dependency }

Provides base TypeScript configuration for Node.js 16 environments.

@satisfied-by

@tsconfig/node20 { .dependency }

Provides base TypeScript configuration for Node.js 20 environments.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/npm-tsconfig--node14

tile.json