@langri-sha/projen-typescript-config
v0.5.3
Published
A [projen] component for managing [TSConfig] files for [TypeScript] projects.
Downloads
2
Readme
@langri-sha/typescript-config
A projen component for managing TSConfig files for TypeScript projects.
Offers full support for configuring TypeScript via [@schemastore/tsconfig
], as
well as a handful of helpers that make it easy to maintain several TypeScript
projects inside a monorepo.
Usage
Install required dependencies:
npm install projen @langri-sha/typescript-config
Create a TypeScript configuration for your project:
import { Project } from 'projen'
import { TypeScriptConfig } from '@langri-sha/typescript-config'
const project = new Project({
name: 'test',
})
const tsconfig = new TypeScriptConfig(project)
const tsconfigBuild = new TypeScriptConfig(project, {
fileName: 'tsconfig.build.json',
config: {
extends: ['tsconfig.json'],
compilerOptions: {
target: 'es2020',
},
}
})
project.synth()