A base TSConfig for working with Node 14.
84
Create a command-line tool that generates appropriate TypeScript configuration files for different runtime environments based on user input. The tool should properly configure environment-specific type definitions and library declarations.
Your tool should accept a target environment as a command-line argument and generate a tsconfig.json file with the appropriate type definitions for that environment.
For each environment, the generated tsconfig.json should include:
Browser Environment:
Node Environment:
Testing Environment:
# Generate browser configuration
node src/config-generator.js browser
# Generate Node configuration
node src/config-generator.js node
# Generate testing configuration
node src/config-generator.js testingThe tool should write the generated configuration to tsconfig.json in the current directory.
@generates
Provides standardized TypeScript configuration bases for different runtime environments.
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