tsconfig-earlycross
v1.0.0
Published
TSConfig presets for EarlyCross TypeScript project
Downloads
12
Readme
tsconfig-earlycross
This is a set of TSConfig configuration preset files for a TypeScript project, intended for use within EarlyCross.
Install
npm i -D tsconfig-earlycross
Configuration
Examples of tsconfig.json
:
Browser Module
{
"extends": "tsconfig-earlycross/tsconfig",
"include": ["src/**/*"],
"compilerOptions": {
"declaration": true,
"lib": ["ESNext", "DOM"],
"module": "ESNext"
...
}
}
Browser Executable
{
"extends": "tsconfig-earlycross/tsconfig",
"include": ["src/**/*"],
"compilerOptions": {
"removeComments": true,
"lib": ["ESNext", "DOM"],
"module": "ESNext"
...
}
}
Node Module
{
"extends": "tsconfig-earlycross/tsconfig",
"include": ["src/**/*"],
"compilerOptions": {
"declaration": true,
"lib": ["ESNext"],
"module": "CommonJS"
...
}
}
Node Executable
{
"extends": "tsconfig-earlycross/tsconfig",
"include": ["src/**/*"],
"compilerOptions": {
"removeComments": true,
"lib": ["ESNext"],
"module": "CommonJS"
...
}
}