1.0.0 • Published 3 years ago
@hedia/tsconfig v1.0.0
@hedia/tsconfig
Shared TypeScript config for Hedia.
Install
$ npm i @hedia/tsconfig
This config requires TypeScript 4.7 or later.
Usage
tsconfig.json
{
"extends": "@hedia/tsconfig",
"compilerOptions": {
"rootDir": ".",
"outDir": "dist" // You must always specify outDir
},
"include": ["src", "test"] // You must always specify include
}
We target ECMAScript modules by default. You can target CommonJS by setting the module
and moduleResolution
:
{
"extends": "@hedia/tsconfig",
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"outDir": "dist" // You must always specify outDir
},
"include": ["src", "test"] // You must always specify include
}