Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@day1co/tsconfig

A base tsconfig for all typescript modules of DAY1 COMPANY Inc. based on @tsconfig bases.

Add the package to your "devDependencies":

npm install --save-dev @day1co/tsconfig @tsconfig/node-lts

NOTE: You should install @tsconfig/node-lts too! See microsoft/TypeScript#18865

Add to your tsconfig.json:

for Both Frontend and Backend:

{
  "extends": "@day1co/tsconfig/common.json",
  "compilerOptions": {
    "outDir": "./lib"
  },
  "include": ["./src"],
  "exclude": ["./lib", "./node_modules"]
}

for Backend:

{
  "extends": "@day1co/tsconfig/backend.json",
  "compilerOptions": {
    "outDir": "./lib"
  },
  "include": ["./src"],
  "exclude": ["./lib", "./node_modules"]
}

for Backend using both Javascript and Typescript:

{
  "extends": "@day1co/tsconfig/backend-mixed.json",
  "compilerOptions": {
    "outDir": "./lib"
  },
  "include": ["./src"],
  "exclude": ["./lib", "./node_modules"]
}

may the SOURCE be with you...