Last active
March 31, 2021 15:25
-
-
Save thiagosouza/f35f4cf48a41b3daf09f0105b8a8319a to your computer and use it in GitHub Desktop.
[Typescript] Typescript #typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "@tsconfig/node12/tsconfig.json", | |
"compilerOptions": { | |
"preserveConstEnums": true | |
}, | |
"include": ["src/**/*"], | |
"exclude": ["node_modules", "**/*.spec.ts"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# manual: | |
# https://www.typescriptlang.org/docs/handbook/tsconfig-json.html | |
# https://www.typescriptlang.org/tsconfig | |
#install Typescript as a dev dependency | |
npm install -D typescript | |
#https://github.com/tsconfig/bases | |
#Install: | |
npm install --save-dev @tsconfig/recommended | |
yarn add --dev @tsconfig/recommended | |
#Add to your tsconfig.json: | |
#"extends": "@tsconfig/recommended/tsconfig.json" | |
echo $(cat tsconfig.json | jq --arg extends @tsconfig/recommended/tsconfig.json '. += {extends:$extends}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment