Skip to content

Instantly share code, notes, and snippets.

@hungrybluedev
Last active November 4, 2020 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hungrybluedev/bb30895fa9c77078f482147fc8308fc2 to your computer and use it in GitHub Desktop.
Save hungrybluedev/bb30895fa9c77078f482147fc8308fc2 to your computer and use it in GitHub Desktop.
My Typescript compiler configuration file that I use across projects.
{
"include": ["./"],
"compilerOptions": {
"incremental": true,
"target": "ESNext",
"module": "ESNext",
"strict": true,
"removeComments": true,
"watch": true,
"outDir": "../js"
}
}
@hungrybluedev
Copy link
Author

Suggestions

I generally put this file inside the ts directory and run tsc -w inside that directory. That's why the output js directory is a sibling of the ts directory, and the include path is just the current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment